summaryrefslogtreecommitdiffstats
path: root/UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmException.c
diff options
context:
space:
mode:
authorJeff Fan <jeff.fan@intel.com>2017-04-01 14:16:41 +0800
committerJeff Fan <jeff.fan@intel.com>2017-04-07 09:43:44 +0800
commit1b2f7b3e4906fbee727677e827dacee7a9fc9b7f (patch)
treeb3e87dda2960dab24821048db19dbc8cf0bd645d /UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmException.c
parente2884d2cd07174f987c5932c6eebac71cf4376f9 (diff)
downloadedk2-1b2f7b3e4906fbee727677e827dacee7a9fc9b7f.tar.gz
edk2-1b2f7b3e4906fbee727677e827dacee7a9fc9b7f.tar.bz2
edk2-1b2f7b3e4906fbee727677e827dacee7a9fc9b7f.zip
UefiCpuPkg/CpuExceptionHandlerLib: Add DumpCpuContext() implementation
Export DumpCpuCotext() to display CPU Context. We will invoke PeCoffGetEntrypointLib's PeCoffSerachImageBase() to get PE/COFF image base. Display exception data bit value for page fault exception. Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: Michael Kinney <michael.d.kinney@intel.com> Cc: Feng Tian <feng.tian@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan <jeff.fan@intel.com> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Diffstat (limited to 'UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmException.c')
-rw-r--r--UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmException.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmException.c b/UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmException.c
index 7ad228c806..5a3d416025 100644
--- a/UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmException.c
+++ b/UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmException.c
@@ -1,7 +1,7 @@
/** @file
CPU exception handler library implemenation for SMM modules.
- Copyright (c) 2013 - 2016, Intel Corporation. All rights reserved.<BR>
+ Copyright (c) 2013 - 2017, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -22,11 +22,6 @@ CONST UINTN mDoFarReturnFlag = 1;
//
SPIN_LOCK mDisplayMessageSpinLock;
-//
-// Image align size for DXE/SMM
-//
-CONST UINTN mImageAlignSize = SIZE_4KB;
-
RESERVED_VECTORS_DATA mReservedVectorsData[CPU_EXCEPTION_NUM];
EFI_CPU_INTERRUPT_HANDLER mExternalInterruptHandlerTable[CPU_EXCEPTION_NUM];
EXCEPTION_HANDLER_DATA mExceptionHandlerData;