[PATCH] x86: bootmap size fix for 32 bit Jeremy Fitzhardinge found x86: extend e820 ealy_res support 32bit cause regression... in setup_bootmem_allocator Signed-off-by: Yinghai Lu diff --git a/arch/x86/kernel/setup_32.c b/arch/x86/kernel/setup_32.c index f38d840..938c7b3 100644 --- a/arch/x86/kernel/setup_32.c +++ b/arch/x86/kernel/setup_32.c @@ -566,17 +566,22 @@ static void __init relocate_initrd(void) void __init setup_bootmem_allocator(void) { + unsigned long bootmap_pages; unsigned long bootmap_size, bootmap; /* * Initialize the boot-time allocator (with low memory only): */ - bootmap_size = bootmem_bootmap_pages(max_low_pfn)<> PAGE_SHIFT, max_low_pfn); + printk(KERN_INFO " bootmap [%016lx - %016lx] pages %lx\n", + bootmap, bootmap + bootmap_size - 1, + bootmap_pages); register_bootmem_low_pages(max_low_pfn); early_res_to_bootmem(0, max_low_pfn<