From: Yinghai Lu Date: Wed, 20 Aug 2008 03:49:41 +0000 (-0700) Subject: x86: add after_bootmem flag for 32bit X-Git-Tag: v2.6.28-rc1~80^2~171 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=fe648be019119722ec0ac54e3a4b2e5bf5168589;p=karo-tx-linux.git x86: add after_bootmem flag for 32bit to prepare to use dyn_array support etc. Signed-off-by: Yinghai Lu Signed-off-by: Ingo Molnar --- diff --git a/arch/x86/mm/init_32.c b/arch/x86/mm/init_32.c index 8396868e82c5..91343c2694b4 100644 --- a/arch/x86/mm/init_32.c +++ b/arch/x86/mm/init_32.c @@ -66,6 +66,7 @@ static unsigned long __meminitdata table_end; static unsigned long __meminitdata table_top; static int __initdata after_init_bootmem; +int after_bootmem; static __init void *alloc_low_page(unsigned long *phys) { @@ -988,6 +989,8 @@ void __init mem_init(void) set_highmem_pages_init(); + after_bootmem = 1; + codesize = (unsigned long) &_etext - (unsigned long) &_text; datasize = (unsigned long) &_edata - (unsigned long) &_etext; initsize = (unsigned long) &__init_end - (unsigned long) &__init_begin;