From 7363ca35f06f3a3ac398812812b75118aab8c6bf Mon Sep 17 00:00:00 2001 From: Sven Schnelle Date: Tue, 31 Jan 2012 22:10:28 +0100 Subject: 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 Reviewed-on: http://review.coreboot.org/599 Tested-by: build bot (Jenkins) --- src/arch/x86/lib/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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)) -- cgit v1.2.3