diff options
author | Sven Schnelle <svens@stackframe.org> | 2012-01-31 22:10:28 +0100 |
---|---|---|
committer | Sven Schnelle <svens@stackframe.org> | 2012-01-31 22:47:39 +0100 |
commit | 7363ca35f06f3a3ac398812812b75118aab8c6bf (patch) | |
tree | 67472ed7c08b1f6b0b9d755bfa7a7fbf9c9c2247 | |
parent | bba0346ef5406b085d15226ec43db4bbeee0ef92 (diff) |
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@stackframe.org>
Reviewed-on: http://review.coreboot.org/599
Tested-by: build bot (Jenkins)
-rw-r--r-- | 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 aaa0a16185..ada57e22fe 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)) |