diff options
author | Jeff Fan <jeff.fan@intel.com> | 2016-11-16 22:25:56 +0800 |
---|---|---|
committer | Jeff Fan <jeff.fan@intel.com> | 2016-11-18 09:43:52 +0800 |
commit | 5c88af795dadb81c9fe43af813b7b6d69bc5e0e4 (patch) | |
tree | e710b4f44f72473cf901089f043e27c1af6d6032 /UefiCpuPkg/PiSmmCpuDxeSmm/X64/PageTbl.c | |
parent | 0e99d51637dee0940a23556f3aee2e7c89bd016f (diff) | |
download | edk2-5c88af795dadb81c9fe43af813b7b6d69bc5e0e4.zip edk2-5c88af795dadb81c9fe43af813b7b6d69bc5e0e4.tar.gz edk2-5c88af795dadb81c9fe43af813b7b6d69bc5e0e4.tar.bz2 |
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/X64/PageTbl.c')
-rw-r--r-- | UefiCpuPkg/PiSmmCpuDxeSmm/X64/PageTbl.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/UefiCpuPkg/PiSmmCpuDxeSmm/X64/PageTbl.c b/UefiCpuPkg/PiSmmCpuDxeSmm/X64/PageTbl.c index b3e50a4..531e188 100644 --- a/UefiCpuPkg/PiSmmCpuDxeSmm/X64/PageTbl.c +++ b/UefiCpuPkg/PiSmmCpuDxeSmm/X64/PageTbl.c @@ -244,6 +244,7 @@ SmmInitPageTable ( UINTN Index;
UINTN PageFaultHandlerHookAddress;
IA32_IDT_GATE_DESCRIPTOR *IdtEntry;
+ EFI_STATUS Status;
//
// Initialize spin lock
@@ -315,7 +316,8 @@ SmmInitPageTable ( //
// Register Smm Page Fault Handler
//
- SmmRegisterExceptionHandler (&mSmmCpuService, EXCEPT_IA32_PAGE_FAULT, SmiPFHandler);
+ Status = SmmRegisterExceptionHandler (&mSmmCpuService, EXCEPT_IA32_PAGE_FAULT, SmiPFHandler);
+ ASSERT_EFI_ERROR (Status);
}
//
|