diff options
Diffstat (limited to 'arch/x86_64/mm/init.c')
-rw-r--r-- | arch/x86_64/mm/init.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/arch/x86_64/mm/init.c b/arch/x86_64/mm/init.c index 19c72520a868..971dc1181e69 100644 --- a/arch/x86_64/mm/init.c +++ b/arch/x86_64/mm/init.c | |||
@@ -406,9 +406,12 @@ void __cpuinit zap_low_mappings(int cpu) | |||
406 | #ifndef CONFIG_NUMA | 406 | #ifndef CONFIG_NUMA |
407 | void __init paging_init(void) | 407 | void __init paging_init(void) |
408 | { | 408 | { |
409 | unsigned long max_zone_pfns[MAX_NR_ZONES] = {MAX_DMA_PFN, | 409 | unsigned long max_zone_pfns[MAX_NR_ZONES]; |
410 | MAX_DMA32_PFN, | 410 | memset(max_zone_pfns, 0, sizeof(max_zone_pfns)); |
411 | end_pfn}; | 411 | max_zone_pfns[ZONE_DMA] = MAX_DMA_PFN; |
412 | max_zone_pfns[ZONE_DMA32] = MAX_DMA32_PFN; | ||
413 | max_zone_pfns[ZONE_NORMAL] = end_pfn; | ||
414 | |||
412 | memory_present(0, 0, end_pfn); | 415 | memory_present(0, 0, end_pfn); |
413 | sparse_init(); | 416 | sparse_init(); |
414 | free_area_init_nodes(max_zone_pfns); | 417 | free_area_init_nodes(max_zone_pfns); |