diff options
author | Yinghai Lu <yinghai@kernel.org> | 2009-05-10 02:47:42 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-05-11 05:11:12 -0400 |
commit | 80989ce0643c1034822f3e339ed8d790b649abe1 (patch) | |
tree | e5881f30fbe9aa557e3caa571dcc57e9ff0fcda4 /arch/x86/mm/init.c | |
parent | 5d423ccd7ba4285f1084e91b26805e1d0ae978ed (diff) |
x86: clean up and and print out initial max_pfn_mapped
Do this so we can check the range that is mapped before
init_memory_mapping().
To be able to print out meaningful info, we first have to fix
64-bit to have max_pfn_mapped assigned before that call. This
also unifies the code-path a bit.
[ Impact: print more debug info, cleanup ]
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
LKML-Reference: <49BF0978.40605@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/mm/init.c')
-rw-r--r-- | arch/x86/mm/init.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/arch/x86/mm/init.c b/arch/x86/mm/init.c index 95f5ecf2be50..92d2108a62c3 100644 --- a/arch/x86/mm/init.c +++ b/arch/x86/mm/init.c | |||
@@ -132,12 +132,11 @@ static void __init find_early_table_space(unsigned long end, int use_pse, | |||
132 | */ | 132 | */ |
133 | #ifdef CONFIG_X86_32 | 133 | #ifdef CONFIG_X86_32 |
134 | start = 0x7000; | 134 | start = 0x7000; |
135 | e820_table_start = find_e820_area(start, max_pfn_mapped<<PAGE_SHIFT, | 135 | #else |
136 | tables, PAGE_SIZE); | ||
137 | #else /* CONFIG_X86_64 */ | ||
138 | start = 0x8000; | 136 | start = 0x8000; |
139 | e820_table_start = find_e820_area(start, end, tables, PAGE_SIZE); | ||
140 | #endif | 137 | #endif |
138 | e820_table_start = find_e820_area(start, max_pfn_mapped<<PAGE_SHIFT, | ||
139 | tables, PAGE_SIZE); | ||
141 | if (e820_table_start == -1UL) | 140 | if (e820_table_start == -1UL) |
142 | panic("Cannot find space for the kernel page tables"); | 141 | panic("Cannot find space for the kernel page tables"); |
143 | 142 | ||