]> git.proxmox.com Git - mirror_edk2.git/blobdiff - UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeException.c
UefiCpuPkg/ExceptionLib: Add EXCEPTION_HANDLER_DATA definition
[mirror_edk2.git] / UefiCpuPkg / Library / CpuExceptionHandlerLib / DxeException.c
index b4b844cde928db4d819842a95d3fbf5a6c4a33db..6d163367ab9004d0238b2e15881e52d6f3e03bca 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   CPU exception handler library implemenation for DXE modules.\r
 \r
-  Copyright (c) 2013, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2013 - 2016, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -21,6 +21,7 @@ CONST UINTN    mDoFarReturnFlag  = 0;
 \r
 extern SPIN_LOCK                   mDisplayMessageSpinLock;\r
 extern EFI_CPU_INTERRUPT_HANDLER   *mExternalInterruptHandler;\r
+EXCEPTION_HANDLER_DATA      mExceptionHandlerData;\r
 \r
 /**\r
   Initializes all CPU exceptions entries and provides the default exception handlers.\r
@@ -119,7 +120,7 @@ InitializeCpuInterruptHandlers (
       (VOID *) TemplateMap.ExceptionStart,\r
       TemplateMap.ExceptionStubHeaderSize\r
       );\r
-    AsmVectorNumFixup ((VOID *) InterruptEntry, (UINT8) Index);\r
+    AsmVectorNumFixup ((VOID *) InterruptEntry,  (UINT8) Index, (VOID *) TemplateMap.ExceptionStart);\r
     InterruptEntry += TemplateMap.ExceptionStubHeaderSize;\r
   }\r
 \r
@@ -158,7 +159,7 @@ InitializeCpuInterruptHandlers (
                                 previously installed.\r
   @retval EFI_UNSUPPORTED       The interrupt specified by InterruptType is not supported,\r
                                 or this function is not supported.\r
-*/\r
+**/\r
 EFI_STATUS\r
 EFIAPI\r
 RegisterCpuInterruptHandler (\r