1 /*
2  * linux/arch/arm/mm/discontig.c
3  *
4  * Discontiguous memory support.
5  *
6  * Initial code: Copyright (C) 1999-2000 Nicolas Pitre
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License version 2 as
10  * published by the Free Software Foundation.
11  */
12 
13 #include <linux/module.h>
14 #include <linux/mm.h>
15 #include <linux/init.h>
16 #include <linux/bootmem.h>
17 
18 #if NR_NODES != 4
19 #error Fix Me Please
20 #endif
21 
22 /*
23  * Our node_data structure for discontiguous memory.
24  */
25 
26 static bootmem_data_t node_bootmem_data[NR_NODES];
27 
28 pg_data_t discontig_node_data[NR_NODES] = {
29   { bdata: &node_bootmem_data[0] },
30   { bdata: &node_bootmem_data[1] },
31   { bdata: &node_bootmem_data[2] },
32   { bdata: &node_bootmem_data[3] }
33 };
34 
35 EXPORT_SYMBOL(discontig_node_data);
36 
37