aboutsummaryrefslogtreecommitdiffstats
path: root/arch/m68k/mm/motorola.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/m68k/mm/motorola.c')
-rw-r--r--arch/m68k/mm/motorola.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/m68k/mm/motorola.c b/arch/m68k/mm/motorola.c
index afb57eeafdcb..bdb11103694b 100644
--- a/arch/m68k/mm/motorola.c
+++ b/arch/m68k/mm/motorola.c
@@ -203,7 +203,7 @@ void __init paging_init(void)
203{ 203{
204 int chunk; 204 int chunk;
205 unsigned long mem_avail = 0; 205 unsigned long mem_avail = 0;
206 unsigned long zones_size[3] = { 0, }; 206 unsigned long zones_size[MAX_NR_ZONES] = { 0, };
207 207
208#ifdef DEBUG 208#ifdef DEBUG
209 { 209 {
@@ -257,12 +257,12 @@ void __init paging_init(void)
257#ifdef DEBUG 257#ifdef DEBUG
258 printk ("before free_area_init\n"); 258 printk ("before free_area_init\n");
259#endif 259#endif
260 zones_size[0] = (mach_max_dma_address < (unsigned long)high_memory ? 260 zones_size[ZONE_DMA] = (mach_max_dma_address < (unsigned long)high_memory ?
261 (mach_max_dma_address+1) : (unsigned long)high_memory); 261 (mach_max_dma_address+1) : (unsigned long)high_memory);
262 zones_size[1] = (unsigned long)high_memory - zones_size[0]; 262 zones_size[ZONE_NORMAL] = (unsigned long)high_memory - zones_size[0];
263 263
264 zones_size[0] = (zones_size[0] - PAGE_OFFSET) >> PAGE_SHIFT; 264 zones_size[ZONE_DMA] = (zones_size[ZONE_DMA] - PAGE_OFFSET) >> PAGE_SHIFT;
265 zones_size[1] >>= PAGE_SHIFT; 265 zones_size[ZONE_NORMAL] >>= PAGE_SHIFT;
266 266
267 free_area_init(zones_size); 267 free_area_init(zones_size);
268} 268}