diff options
Diffstat (limited to 'arch/m68k/mm/sun3mmu.c')
-rw-r--r-- | arch/m68k/mm/sun3mmu.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/m68k/mm/sun3mmu.c b/arch/m68k/mm/sun3mmu.c index a47be196a47..ac6640ade0b 100644 --- a/arch/m68k/mm/sun3mmu.c +++ b/arch/m68k/mm/sun3mmu.c | |||
@@ -46,7 +46,7 @@ void __init paging_init(void) | |||
46 | unsigned long address; | 46 | unsigned long address; |
47 | unsigned long next_pgtable; | 47 | unsigned long next_pgtable; |
48 | unsigned long bootmem_end; | 48 | unsigned long bootmem_end; |
49 | unsigned long zones_size[3] = {0, 0, 0}; | 49 | unsigned long zones_size[MAX_NR_ZONES] = { 0, }; |
50 | unsigned long size; | 50 | unsigned long size; |
51 | 51 | ||
52 | 52 | ||
@@ -92,8 +92,7 @@ void __init paging_init(void) | |||
92 | current->mm = NULL; | 92 | current->mm = NULL; |
93 | 93 | ||
94 | /* memory sizing is a hack stolen from motorola.c.. hope it works for us */ | 94 | /* memory sizing is a hack stolen from motorola.c.. hope it works for us */ |
95 | zones_size[0] = ((unsigned long)high_memory - PAGE_OFFSET) >> PAGE_SHIFT; | 95 | zones_size[ZONE_DMA] = ((unsigned long)high_memory - PAGE_OFFSET) >> PAGE_SHIFT; |
96 | zones_size[1] = 0; | ||
97 | 96 | ||
98 | free_area_init(zones_size); | 97 | free_area_init(zones_size); |
99 | 98 | ||