projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
183fe06
)
x86: make e820_end return max ram type only for 32 bit
author
Yinghai Lu
<yhlu.kernel@gmail.com>
Wed, 9 Jul 2008 10:01:14 +0000
(
03:01
-0700)
committer
Ingo Molnar
<mingo@elte.hu>
Wed, 9 Jul 2008 10:30:13 +0000
(12:30 +0200)
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>
arch/x86/kernel/e820.c
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/e820.c
b/arch/x86/kernel/e820.c
index 2e08619a9c5c2b4bc947e775ca0cc97e82b80ab3..292ebc7fe4d0ac0261f1c0fc2906cc045860867b 100644
(file)
--- a/
arch/x86/kernel/e820.c
+++ b/
arch/x86/kernel/e820.c
@@
-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;