From 57d1afc88950401a322e8679bbf89ec57ba8e992 Mon Sep 17 00:00:00 2001 From: "Song, BinX" Date: Fri, 12 Jan 2018 10:19:00 +0800 Subject: [PATCH 1/1] UefiCpuPkg: Enhance feature dependency check Enhance MCA feature dependency check base on SDM pseudocode example 15-1. Cc: Eric Dong Cc: Laszlo Ersek Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Bell Song Reviewed-by: Eric Dong --- UefiCpuPkg/Library/CpuCommonFeaturesLib/MachineCheck.c | 3 +++ 1 file changed, 3 insertions(+) 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); } -- 2.39.2