diff options
author | Jeff Fan <jeff.fan@intel.com> | 2016-05-24 21:00:02 +0800 |
---|---|---|
committer | Hao Wu <hao.a.wu@intel.com> | 2016-07-14 15:50:52 +0800 |
commit | b5304bef3bdf7a42f45aad5db1d815296cc8ef5d (patch) | |
tree | 332189a7a128acdc1d0e137599feb976478ba5c6 /UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmException.c | |
parent | e5501ce2adff58de6036e5d9956b2da7e44327d6 (diff) | |
download | edk2-platforms-b5304bef3bdf7a42f45aad5db1d815296cc8ef5d.tar.xz |
UefiCpuPkg/ExceptionLib: Update InitializeCpuExceptionHandlersWorker
Add parameter CpuExceptionData for InitializeCpuExceptionHandlersWorker().
Cc: Michael Kinney <michael.d.kinney@intel.com>
Cc: Jiewen Yao <jiewen.yao@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: Feng Tian <feng.tian@intel.com>
(cherry picked from commit ab95e54dc4ec949fd13e8bdda1c7423469e08c3d)
Diffstat (limited to 'UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmException.c')
-rw-r--r-- | UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmException.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmException.c b/UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmException.c index 3f9d001fd5..b88305d73c 100644 --- a/UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmException.c +++ b/UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmException.c @@ -17,6 +17,8 @@ CONST UINTN mDoFarReturnFlag = 1;
+extern RESERVED_VECTORS_DATA mReservedVectorsData[CPU_EXCEPTION_NUM];
+extern EFI_CPU_INTERRUPT_HANDLER mExternalInterruptHandlerTable[CPU_EXCEPTION_NUM];
EXCEPTION_HANDLER_DATA mExceptionHandlerData;
/**
Initializes all CPU exceptions entries and provides the default exception handlers.
@@ -40,7 +42,10 @@ InitializeCpuExceptionHandlers ( IN EFI_VECTOR_HANDOFF_INFO *VectorInfo OPTIONAL
)
{
- return InitializeCpuExceptionHandlersWorker (VectorInfo);
+ mExceptionHandlerData.ReservedVectors = mReservedVectorsData;
+ mExceptionHandlerData.ExternalInterruptHandler = mExternalInterruptHandlerTable;
+ InitializeSpinLock (&mExceptionHandlerData.DisplayMessageSpinLock);
+ return InitializeCpuExceptionHandlersWorker (VectorInfo, &mExceptionHandlerData);
}
/**
|