diff options
Diffstat (limited to 'arch/x86/kernel/e820.c')
-rw-r--r-- | arch/x86/kernel/e820.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/x86/kernel/e820.c b/arch/x86/kernel/e820.c index 2e08619a9c5c..292ebc7fe4d0 100644 --- a/arch/x86/kernel/e820.c +++ b/arch/x86/kernel/e820.c | |||
@@ -1066,6 +1066,11 @@ unsigned long __init e820_end(void) | |||
1066 | struct e820entry *ei = &e820.map[i]; | 1066 | struct e820entry *ei = &e820.map[i]; |
1067 | unsigned long end_pfn; | 1067 | unsigned long end_pfn; |
1068 | 1068 | ||
1069 | #ifdef CONFIG_X86_32 | ||
1070 | if (ei->type != E820_RAM) | ||
1071 | continue; | ||
1072 | #endif | ||
1073 | |||
1069 | end_pfn = (ei->addr + ei->size) >> PAGE_SHIFT; | 1074 | end_pfn = (ei->addr + ei->size) >> PAGE_SHIFT; |
1070 | if (end_pfn > last_pfn) | 1075 | if (end_pfn > last_pfn) |
1071 | last_pfn = end_pfn; | 1076 | last_pfn = end_pfn; |