]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFsp2Pkg/FspSecCore/SecMain.h
IntelFsp2Pkg: FSP should not override IDT
[mirror_edk2.git] / IntelFsp2Pkg / FspSecCore / SecMain.h
index 291bc5ca5caa116062d5db18f7581fac64363eb8..19ac2fbfc168147f027e13c7ee57a6fecd69a5ec 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
 \r
-  Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2014 - 2018, 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
@@ -29,8 +29,6 @@
 #include <Library/FspCommonLib.h>\r
 #include <FspEas.h>\r
 \r
-#define SEC_IDT_ENTRY_COUNT    34\r
-\r
 typedef VOID (*PEI_CORE_ENTRY) ( \\r
   IN CONST  EFI_SEC_PEI_HAND_OFF    *SecCoreData, \\r
   IN CONST  EFI_PEI_PPI_DESCRIPTOR  *PpiList \\r
@@ -38,7 +36,7 @@ typedef VOID (*PEI_CORE_ENTRY) ( \
 \r
 typedef struct _SEC_IDT_TABLE {\r
   EFI_PEI_SERVICES  *PeiService;\r
-  UINT64            IdtTable[SEC_IDT_ENTRY_COUNT];\r
+  UINT64            IdtTable[FixedPcdGet8 (PcdFspMaxInterruptSupported)];\r
 } SEC_IDT_TABLE;\r
 \r
 /**\r