summaryrefslogtreecommitdiffstats
path: root/UefiCpuPkg
diff options
context:
space:
mode:
authorSong, BinX <binx.song@intel.com>2018-01-12 10:19:00 +0800
committerEric Dong <eric.dong@intel.com>2018-01-15 15:39:50 +0800
commit57d1afc88950401a322e8679bbf89ec57ba8e992 (patch)
treeca004d35d26fbbfcfed3d947b17b882672e3d84e /UefiCpuPkg
parent228e4f47066307a593c16ad2f611f4219bdb5f28 (diff)
downloadedk2-57d1afc88950401a322e8679bbf89ec57ba8e992.tar.gz
edk2-57d1afc88950401a322e8679bbf89ec57ba8e992.tar.bz2
edk2-57d1afc88950401a322e8679bbf89ec57ba8e992.zip
UefiCpuPkg: Enhance feature dependency check
Enhance MCA feature dependency check base on SDM pseudocode example 15-1. Cc: Eric Dong <eric.dong@intel.com> Cc: Laszlo Ersek <lersek@redhat.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Bell Song <binx.song@intel.com> Reviewed-by: Eric Dong <eric.dong@intel.com>
Diffstat (limited to 'UefiCpuPkg')
-rw-r--r--UefiCpuPkg/Library/CpuCommonFeaturesLib/MachineCheck.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/UefiCpuPkg/Library/CpuCommonFeaturesLib/MachineCheck.c b/UefiCpuPkg/Library/CpuCommonFeaturesLib/MachineCheck.c
index b012c6926e..58dc45aeda 100644
--- a/UefiCpuPkg/Library/CpuCommonFeaturesLib/MachineCheck.c
+++ b/UefiCpuPkg/Library/CpuCommonFeaturesLib/MachineCheck.c
@@ -105,6 +105,9 @@ McaSupport (
IN VOID *ConfigData OPTIONAL
)
{
+ if (!MceSupport (ProcessorNumber, CpuInfo, ConfigData)) {
+ return FALSE;
+ }
return (CpuInfo->CpuIdVersionInfoEdx.Bits.MCA == 1);
}