[coreboot] New patch to review for coreboot: 9f73df7 X86: fix cpu_phys_address_size()
Sven Schnelle (svens@stackframe.org)
gerrit at coreboot.org
Tue Jan 31 22:11:44 CET 2012
Sven Schnelle (svens at stackframe.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/599
-gerrit
commit 9f73df7837c00d07a4f29527c2d10308d708209b
Author: Sven Schnelle <svens at stackframe.org>
Date: Tue Jan 31 22:10:28 2012 +0100
X86: fix cpu_phys_address_size()
CPUs with CPUID level >= 0x80000008 can return
the number of physical address bits.
Change-Id: I1c0523b6a091c476af838d173ed9030280360d7f
Signed-off-by: Sven Schnelle <svens at stackframe.org>
---
src/arch/x86/lib/cpu.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/arch/x86/lib/cpu.c b/src/arch/x86/lib/cpu.c
index aaa0a16..ada57e2 100644
--- a/src/arch/x86/lib/cpu.c
+++ b/src/arch/x86/lib/cpu.c
@@ -144,7 +144,7 @@ int cpu_phys_address_size(void)
if (!(have_cpuid_p()))
return 32;
- if (cpu_cpuid_extended_level() > 0x80000008)
+ if (cpu_cpuid_extended_level() >= 0x80000008)
return cpuid_eax(0x80000008) & 0xff;
if (cpuid_eax(1) & (CPUID_FEATURE_PAE | CPUID_FEATURE_PSE36))
More information about the coreboot
mailing list