aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/setup.c
diff options
context:
space:
mode:
authorYinghai Lu <yinghai@kernel.org>2009-05-10 02:47:42 -0400
committerIngo Molnar <mingo@elte.hu>2009-05-11 05:11:12 -0400
commit80989ce0643c1034822f3e339ed8d790b649abe1 (patch)
treee5881f30fbe9aa557e3caa571dcc57e9ff0fcda4 /arch/x86/kernel/setup.c
parent5d423ccd7ba4285f1084e91b26805e1d0ae978ed (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/kernel/setup.c')
-rw-r--r--arch/x86/kernel/setup.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c
index 0d77e56e821b..4031d6cb3ff9 100644
--- a/arch/x86/kernel/setup.c
+++ b/arch/x86/kernel/setup.c
@@ -862,12 +862,16 @@ void __init setup_arch(char **cmdline_p)
862 max_low_pfn = max_pfn; 862 max_low_pfn = max_pfn;
863 863
864 high_memory = (void *)__va(max_pfn * PAGE_SIZE - 1) + 1; 864 high_memory = (void *)__va(max_pfn * PAGE_SIZE - 1) + 1;
865 max_pfn_mapped = KERNEL_IMAGE_SIZE >> PAGE_SHIFT;
865#endif 866#endif
866 867
867#ifdef CONFIG_X86_CHECK_BIOS_CORRUPTION 868#ifdef CONFIG_X86_CHECK_BIOS_CORRUPTION
868 setup_bios_corruption_check(); 869 setup_bios_corruption_check();
869#endif 870#endif
870 871
872 printk(KERN_DEBUG "initial memory mapped : 0 - %08lx\n",
873 max_pfn_mapped<<PAGE_SHIFT);
874
871 reserve_brk(); 875 reserve_brk();
872 876
873 /* max_pfn_mapped is updated here */ 877 /* max_pfn_mapped is updated here */