Skip to content

Commit

Permalink
x86: make e820_end return max ram type only for 32 bit
Browse files Browse the repository at this point in the history
to avoid warning from find_low_pfn_range for high pages size etc

Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Yinghai Lu authored and Ingo Molnar committed Jul 9, 2008
1 parent 183fe06 commit c22d4c1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions arch/x86/kernel/e820.c
Original file line number Diff line number Diff line change
Expand Up @@ -1066,6 +1066,11 @@ 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)
last_pfn = end_pfn;
Expand Down

0 comments on commit c22d4c1

Please sign in to comment.