]> git.proxmox.com Git - mirror_edk2.git/blobdiff - UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiDxeSmmCpuException.c
UefiCpuPkg/ExceptionLib: Move global variable location
[mirror_edk2.git] / UefiCpuPkg / Library / CpuExceptionHandlerLib / PeiDxeSmmCpuException.c
index d4bc293db073121eb18019d68864088cd9724202..02d56223c6b7462e112858fd40336f202e84fdac 100644 (file)
@@ -15,17 +15,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #include "CpuExceptionCommon.h"\r
 #include <Library/DebugLib.h>\r
 \r
-\r
-//\r
-// Image align size for DXE/SMM\r
-//\r
-CONST UINTN      mImageAlignSize = SIZE_4KB;\r
-\r
-RESERVED_VECTORS_DATA       mReservedVectorsData[CPU_EXCEPTION_NUM];\r
-EFI_CPU_INTERRUPT_HANDLER   mExternalInterruptHandlerTable[CPU_EXCEPTION_NUM];\r
-EFI_CPU_INTERRUPT_HANDLER   *mExternalInterruptHandler = NULL;\r
-UINTN                       mEnabledInterruptNum = 0;\r
-\r
 /**\r
   Internal worker function for common exception handler.\r
 \r
@@ -196,11 +185,6 @@ UpdateIdtTable (
       break;\r
     }\r
   }\r
\r
-  //\r
-  // Save Interrupt number to global variable used for RegisterCpuInterruptHandler ()\r
-  //\r
-  mEnabledInterruptNum = ExceptionHandlerData->IdtEntryCount;\r
 }\r
 \r
 /**\r
@@ -237,7 +221,6 @@ InitializeCpuExceptionHandlersWorker (
     }\r
   }\r
 \r
-  mExternalInterruptHandler = mExternalInterruptHandlerTable;\r
   //\r
   // Read IDT descriptor and calculate IDT size\r
   //\r
@@ -256,7 +239,7 @@ InitializeCpuExceptionHandlersWorker (
 \r
   ExceptionHandlerData->IdtEntryCount = IdtEntryCount;\r
   UpdateIdtTable (IdtTable, &TemplateMap, ExceptionHandlerData);\r
-  mEnabledInterruptNum = IdtEntryCount;\r
+\r
   return EFI_SUCCESS;\r
 }\r
 \r