x86: clean up and and print out initial max_pfn_mapped
authorYinghai Lu <yinghai@kernel.org>
Sun, 10 May 2009 06:47:42 +0000 (23:47 -0700)
committerIngo Molnar <mingo@elte.hu>
Mon, 11 May 2009 09:11:12 +0000 (11:11 +0200)
commit80989ce0643c1034822f3e339ed8d790b649abe1
treee5881f30fbe9aa557e3caa571dcc57e9ff0fcda4
parent5d423ccd7ba4285f1084e91b26805e1d0ae978ed
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>
arch/x86/kernel/setup.c
arch/x86/mm/init.c