diff options
author | Song, BinX <binx.song@intel.com> | 2018-01-12 10:19:00 +0800 |
---|---|---|
committer | Eric Dong <eric.dong@intel.com> | 2018-01-15 15:39:50 +0800 |
commit | 57d1afc88950401a322e8679bbf89ec57ba8e992 (patch) | |
tree | ca004d35d26fbbfcfed3d947b17b882672e3d84e | |
parent | 228e4f47066307a593c16ad2f611f4219bdb5f28 (diff) | |
download | edk2-57d1afc88950401a322e8679bbf89ec57ba8e992.zip edk2-57d1afc88950401a322e8679bbf89ec57ba8e992.tar.gz edk2-57d1afc88950401a322e8679bbf89ec57ba8e992.tar.bz2 |
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>
-rw-r--r-- | UefiCpuPkg/Library/CpuCommonFeaturesLib/MachineCheck.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/UefiCpuPkg/Library/CpuCommonFeaturesLib/MachineCheck.c b/UefiCpuPkg/Library/CpuCommonFeaturesLib/MachineCheck.c index b012c69..58dc45a 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);
}
|