summaryrefslogtreecommitdiffstats
path: root/UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.c
diff options
context:
space:
mode:
authorJeff Fan <jeff.fan@intel.com>2016-11-16 22:25:56 +0800
committerJeff Fan <jeff.fan@intel.com>2016-11-18 09:43:52 +0800
commit5c88af795dadb81c9fe43af813b7b6d69bc5e0e4 (patch)
treee710b4f44f72473cf901089f043e27c1af6d6032 /UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.c
parent0e99d51637dee0940a23556f3aee2e7c89bd016f (diff)
downloadedk2-5c88af795dadb81c9fe43af813b7b6d69bc5e0e4.tar.gz
edk2-5c88af795dadb81c9fe43af813b7b6d69bc5e0e4.tar.bz2
edk2-5c88af795dadb81c9fe43af813b7b6d69bc5e0e4.zip
MdeModulePkg/PiSmmCpuDxeSmm: Check RegisterCpuInterruptHandler status
Once platform selects the incorrect instance, the caller could know it from return status and ASSERT(). Cc: Feng Tian <feng.tian@intel.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan <jeff.fan@intel.com> Reviewed-by: Michael Kinney <michael.d.kinney@intel.com>
Diffstat (limited to 'UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.c')
-rw-r--r--UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.c b/UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.c
index 4b7fad29c3..c1a48d100e 100644
--- a/UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.c
+++ b/UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.c
@@ -1375,5 +1375,8 @@ InitIdtr (
VOID
)
{
- SmmRegisterExceptionHandler (&mSmmCpuService, EXCEPT_IA32_DEBUG, DebugExceptionHandler);
+ EFI_STATUS Status;
+
+ Status = SmmRegisterExceptionHandler (&mSmmCpuService, EXCEPT_IA32_DEBUG, DebugExceptionHandler);
+ ASSERT_EFI_ERROR (Status);
}