Commit 3d43ecd2 authored by Yinghai Lu's avatar Yinghai Lu Committed by Ingo Molnar

x86: make e820_end return end_of_ram again for 64bit

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: default avatarYinghai Lu <yhlu.kernel@gmail.com>
Cc: Suresh Siddha <suresh.b.siddha@intel.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent f34fa82b
...@@ -1066,10 +1066,8 @@ unsigned long __init e820_end(void) ...@@ -1066,10 +1066,8 @@ unsigned long __init e820_end(void)
struct e820entry *ei = &e820.map[i]; struct e820entry *ei = &e820.map[i];
unsigned long end_pfn; unsigned long end_pfn;
#ifdef CONFIG_X86_32
if (ei->type != E820_RAM) if (ei->type != E820_RAM)
continue; continue;
#endif
end_pfn = (ei->addr + ei->size) >> PAGE_SHIFT; end_pfn = (ei->addr + ei->size) >> PAGE_SHIFT;
if (end_pfn > last_pfn) if (end_pfn > last_pfn)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment