diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2012-02-29 21:17:18 +0200 |
---|---|---|
committer | Sven Schnelle <svens@stackframe.org> | 2012-02-29 20:58:14 +0100 |
commit | 730c0eec43a4be5d2b8d7b2450bd0fdebd4253a4 (patch) | |
tree | 0648608bbbd6e8b5c88f19b0c4f6f6ce98799e51 | |
parent | b99bc43ee0893651ec81e6e3aabecae9d361be98 (diff) | |
download | coreboot-730c0eec43a4be5d2b8d7b2450bd0fdebd4253a4.tar.xz |
Fix x86 cpu_phys_address_size
After CPUID, requested feature flag is in edx, not eax.
Change-Id: I9ce27c22186f17cc64986be342d7d1ac78a79898
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: http://review.coreboot.org/688
Tested-by: build bot (Jenkins)
Reviewed-by: Sven Schnelle <svens@stackframe.org>
-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 ada57e22fe..8aacaac196 100644 --- a/src/arch/x86/lib/cpu.c +++ b/src/arch/x86/lib/cpu.c @@ -147,7 +147,7 @@ int cpu_phys_address_size(void) if (cpu_cpuid_extended_level() >= 0x80000008) return cpuid_eax(0x80000008) & 0xff; - if (cpuid_eax(1) & (CPUID_FEATURE_PAE | CPUID_FEATURE_PSE36)) + if (cpuid_edx(1) & (CPUID_FEATURE_PAE | CPUID_FEATURE_PSE36)) return 36; return 32; } |