/** @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
\r
\r
@param[in] SizeOfRam Size of the temporary memory available for use.\r
- @param[in] TempRamBase Base address of tempory ram\r
+ @param[in] TempRamBase Base address of temporary ram\r
@param[in] BootFirmwareVolume Base address of the Boot Firmware Volume.\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
SecStartup (\r
IN UINT32 SizeOfRam,\r
IN UINT32 TempRamBase,\r
- IN VOID *BootFirmwareVolume\r
+ IN VOID *BootFirmwareVolume,\r
+ IN PEI_CORE_ENTRY PeiCore,\r
+ IN UINT32 BootLoaderStack,\r
+ IN UINT32 ApiIdx\r
)\r
{\r
EFI_SEC_PEI_HAND_OFF SecCoreData;\r
SEC_IDT_TABLE IdtTableInStack;\r
UINT32 Index;\r
FSP_GLOBAL_DATA PeiFspData;\r
- PEI_CORE_ENTRY PeiCore;\r
UINT64 ExceptionHandler;\r
\r
//\r
AsmWriteIdtr (&IdtDescriptor);\r
\r
//\r
- // Iniitalize the global FSP data region\r
+ // Initialize 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
\r
//\r
// Call PeiCore Entry\r
- //\r
- PeiCore = (PEI_CORE_ENTRY)(*(UINTN *)((&BootFirmwareVolume) + 1));\r
+ // \r
PeiCore (&SecCoreData, mPeiSecPlatformInformationPpi);\r
\r
//\r
\r
//\r
// SecSwitchStack function must be invoked after the memory migration\r
- // immediatly, also we need fixup the stack change caused by new call into\r
- // permenent memory.\r
+ // immediately, also we need fixup the stack change caused by new call into\r
+ // permanent memory.\r
//\r
SecSwitchStack (\r
(UINT32) (UINTN) OldStack,\r