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>
This commit is contained in:
parent
b99bc43ee0
commit
730c0eec43
|
@ -147,7 +147,7 @@ int cpu_phys_address_size(void)
|
||||||
if (cpu_cpuid_extended_level() >= 0x80000008)
|
if (cpu_cpuid_extended_level() >= 0x80000008)
|
||||||
return cpuid_eax(0x80000008) & 0xff;
|
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 36;
|
||||||
return 32;
|
return 32;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue