]> git.proxmox.com Git - mirror_edk2.git/commit - UefiCpuPkg/Library/CpuCommonFeaturesLib/MachineCheck.c
UefiCpuPkg/FeaturesLib: don't init MCi_CTL/STATUS when MCA's disabled
authorRuiyu Ni <ruiyu.ni@intel.com>
Thu, 8 Feb 2018 06:43:20 +0000 (14:43 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Fri, 9 Feb 2018 04:33:55 +0000 (12:33 +0800)
commitdc7363f848158564d8404c415061acf8c51ceb45
tree3a5064ff10db39f9d7f2d1e47ebde3fe5bb8d3aa
parent7506fe43a10d5f8148417812d204498995d9f1e7
UefiCpuPkg/FeaturesLib: don't init MCi_CTL/STATUS when MCA's disabled

Today's McaInitialize() doesn't check State value before initialize
MCi_CTL and MCi_STATUS.
The patch fixes this issue by only initializing the two kinds of
MSRs when State is enabled.

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