]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFsp2Pkg/FspSecCore/SecMain.c
IntelFsp2Pkg: Update SEC_IDT_TABLE struct
[mirror_edk2.git] / IntelFsp2Pkg / FspSecCore / SecMain.c
index 8effe2225c145596b184b4021d051ffdd60afade..94ea3865b45f947e03b5d6f9acdb6d9f3c9b00ec 100644 (file)
@@ -58,13 +58,13 @@ SecStartup (
   IN UINT32          ApiIdx\r
   )\r
 {\r
-  EFI_SEC_PEI_HAND_OFF  SecCoreData;\r
-  IA32_DESCRIPTOR       IdtDescriptor;\r
-  SEC_IDT_TABLE         IdtTableInStack;\r
-  UINT32                Index;\r
-  FSP_GLOBAL_DATA       PeiFspData;\r
-  UINT64                ExceptionHandler;\r
-  UINTN                 IdtSize;\r
+  EFI_SEC_PEI_HAND_OFF      SecCoreData;\r
+  IA32_DESCRIPTOR           IdtDescriptor;\r
+  SEC_IDT_TABLE             IdtTableInStack;\r
+  UINT32                    Index;\r
+  FSP_GLOBAL_DATA           PeiFspData;\r
+  IA32_IDT_GATE_DESCRIPTOR  ExceptionHandler;\r
+  UINTN                     IdtSize;\r
 \r
   //\r
   // Process all libraries constructor function linked to SecCore.\r
@@ -119,7 +119,7 @@ SecStartup (
   if (IdtDescriptor.Base == 0) {\r
     ExceptionHandler = FspGetExceptionHandler (mIdtEntryTemplate);\r
     for (Index = 0; Index < FixedPcdGet8 (PcdFspMaxInterruptSupported); Index++) {\r
-      CopyMem ((VOID *)&IdtTableInStack.IdtTable[Index], (VOID *)&ExceptionHandler, sizeof (UINT64));\r
+      CopyMem ((VOID *)&IdtTableInStack.IdtTable[Index], (VOID *)&ExceptionHandler, sizeof (IA32_IDT_GATE_DESCRIPTOR));\r
     }\r
 \r
     IdtSize = sizeof (IdtTableInStack.IdtTable);\r