From: Yinghai Lu Date: Sun, 22 Jun 2008 09:44:49 +0000 (-0700) Subject: x86: introduce initmem_init for 64 bit X-Git-Tag: v2.6.27-rc1~1106^2~211 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=1f75d7e32ed47b2ab8570771a2ce8c707a7225a2;p=linux-2.6-omap-h63xx.git x86: introduce initmem_init for 64 bit Signed-off-by: Yinghai Lu Signed-off-by: Ingo Molnar --- diff --git a/arch/x86/mm/init_64.c b/arch/x86/mm/init_64.c index 97c2bc741e9..99a091ee5a6 100644 --- a/arch/x86/mm/init_64.c +++ b/arch/x86/mm/init_64.c @@ -611,6 +611,22 @@ unsigned long __init_refok init_memory_mapping(unsigned long start, unsigned lon } #ifndef CONFIG_NUMA +void __init initmem_init(unsigned long start_pfn, unsigned long end_pfn) +{ + unsigned long bootmap_size, bootmap; + + bootmap_size = bootmem_bootmap_pages(end_pfn)<> PAGE_SHIFT, end_pfn); + e820_register_active_regions(0, start_pfn, end_pfn); + free_bootmem_with_active_regions(0, end_pfn); + early_res_to_bootmem(0, end_pfn<