]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
x86: make e820_end return end_of_ram again for 64bit
authorYinghai Lu <yhlu.kernel@gmail.com>
Thu, 10 Jul 2008 03:17:50 +0000 (20:17 -0700)
committerIngo Molnar <mingo@elte.hu>
Thu, 10 Jul 2008 07:01:35 +0000 (09:01 +0200)
even on 64bit systems with less than 4G RAM, we can now use fixmap
to handle acpi SIT near end of ram.

change e820_end to e820_end_of_ram again?
or e820_ram_pfn?

Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Cc: Suresh Siddha <suresh.b.siddha@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/e820.c

index 66fd5bd78318b36c247593d45205001303d2a1bf..9836a079cfd9c8621cdb1d8844b796947485987b 100644 (file)
@@ -1066,10 +1066,8 @@ unsigned long __init e820_end(void)
                struct e820entry *ei = &e820.map[i];
                unsigned long end_pfn;
 
-#ifdef CONFIG_X86_32
                if (ei->type != E820_RAM)
                        continue;
-#endif
 
                end_pfn = (ei->addr + ei->size) >> PAGE_SHIFT;
                if (end_pfn > last_pfn)