]> git.proxmox.com Git - mirror_edk2.git/commit
UefiCpuPkg/CpuCommonFeatures: Follow SDM for MAX CPUID feature detect
authorRuiyu Ni <ruiyu.ni@intel.com>
Fri, 25 May 2018 09:00:16 +0000 (17:00 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Mon, 28 May 2018 06:59:19 +0000 (14:59 +0800)
commit60cb4d1b04b6334cf9d56eb95d135546053db1fd
tree02a4f428ef7a40ad8cc21b4996ac60da3d03b413
parent36dd3c781e204a97d548ce3595ef6f6b6337bc1f
UefiCpuPkg/CpuCommonFeatures: Follow SDM for MAX CPUID feature detect

According to IA manual:
"Before setting this bit (MSR_IA32_MISC_ENABLE[22]) , BIOS must
execute the CPUID.0H and examine the maximum value returned in
EAX[7:0]. If the maximum value is greater than 2, this bit is
supported."

We need to fix our current detection logic to compare against 2.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
Cc: Ming Shao <ming.shao@intel.com>
UefiCpuPkg/Library/CpuCommonFeaturesLib/LimitCpuIdMaxval.c