]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFspPkg/FspSecCore/SecMain.c
Update IntelFspPkg according to FSP1.1.
[mirror_edk2.git] / IntelFspPkg / FspSecCore / SecMain.c
index 971a3a1b82ac12f0945deb205b91f6fcfe473cba..15afc0b76aa63cc9f2bf9eade1ba96882bb12aba 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
 \r
-  Copyright (c) 2014, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2014 - 2015, 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
@@ -41,7 +41,9 @@ UINT64  mIdtEntryTemplate = 0xffff8e000008ffe4ULL;
   @param[in] SizeOfRam          Size of the temporary memory available for use.\r
   @param[in] TempRamBase        Base address of tempory ram\r
   @param[in] BootFirmwareVolume Base address of the Boot Firmware Volume.\r
-  @param[in] PeiCoreEntry       Pei Core entrypoint.\r
+  @param[in] PeiCore            PeiCore entry point.\r
+  @param[in] BootloaderStack    Bootloader stack.\r
+  @param[in] ApiIdx             the index of API\r
 \r
   @return This function never returns.\r
 \r
@@ -52,7 +54,9 @@ SecStartup (
   IN UINT32                   SizeOfRam,\r
   IN UINT32                   TempRamBase,\r
   IN VOID                    *BootFirmwareVolume,\r
-  IN UINTN                    PeiCoreEntry\r
+  IN PEI_CORE_ENTRY           PeiCore,\r
+  IN UINT32                   BootloaderStack,\r
+  IN UINT32                   ApiIdx\r
   )\r
 {\r
   EFI_SEC_PEI_HAND_OFF        SecCoreData;\r
@@ -60,7 +64,6 @@ SecStartup (
   SEC_IDT_TABLE               IdtTableInStack;\r
   UINT32                      Index;\r
   FSP_GLOBAL_DATA             PeiFspData;\r
-  PEI_CORE_ENTRY              PeiCore;\r
   UINT64                      ExceptionHandler;\r
 \r
   //\r
@@ -103,7 +106,7 @@ SecStartup (
   //\r
   // Iniitalize the global FSP data region\r
   //\r
-  FspGlobalDataInit (&PeiFspData, &BootFirmwareVolume);\r
+  FspGlobalDataInit (&PeiFspData, BootloaderStack, (UINT8)ApiIdx);\r
 \r
   //\r
   // Update the base address and length of Pei temporary memory\r
@@ -120,8 +123,7 @@ SecStartup (
 \r
   //\r
   // Call PeiCore Entry\r
-  //\r
-  PeiCore = (PEI_CORE_ENTRY)(PeiCoreEntry);\r
+  //  \r
   PeiCore (&SecCoreData, mPeiSecPlatformInformationPpi);\r
 \r
   //\r