--- /dev/null
+/** @file\r
+ PI PEI master include file. This file should match the PI spec.\r
+\r
+ Copyright (c) 2006 - 2007, Intel Corporation \r
+ All rights reserved. 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
+ http://opensource.org/licenses/bsd-license.php \r
+\r
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
+\r
+ @par Revision Reference:\r
+ Version 1.0.\r
+\r
+**/\r
+\r
+#ifndef __PEICIS_H__\r
+#define __PEICIS_H__\r
+\r
+#include <PiPei.h>\r
+\r
+/**\r
+ The PEI Dispatcher will invoke each PEIM one time. During this pass, the PEI \r
+ Dispatcher will pass control to the PEIM at the AddressOfEntryPoint in the PE Header. \r
+\r
+ @param FfsHeader Pointer to the FFS file header.\r
+ @param PeiServices Describes the list of possible PEI Services.\r
+\r
+ @return Status code\r
+\r
+**/\r
+typedef\r
+EFI_STATUS\r
+(EFIAPI *EFI_PEIM_ENTRY_POINT)(\r
+ IN EFI_FFS_FILE_HEADER *FfsHeader,\r
+ IN EFI_PEI_SERVICES **PeiServices\r
+ );\r
+ \r
+#endif
\ No newline at end of file
\r
#include <PiPei.h>\r
\r
+#include <Framework/PeiCis.h>\r
#include <Framework/DataHubRecords.h>\r
#include <Framework/FirmwareVolumeImageFormat.h>\r
#include <Framework/FirmwareVolumeHeader.h>\r
// Set gInMemory global variable to TRUE to indicate the dxeipl is shadowed.\r
//\r
*(BOOLEAN *) ((UINTN) &gInMemory + (UINTN) DxeIplEntryPoint - (UINTN) _ModuleEntryPoint) = TRUE;\r
- Status = ((EFI_PEIM_ENTRY_POINT) (UINTN) DxeIplEntryPoint) ((EFI_PEI_FILE_HANDLE *) DxeIplFileHeader, GetPeiServicesTablePointer());\r
+ Status = ((EFI_PEIM_ENTRY_POINT2) (UINTN) DxeIplEntryPoint) ((EFI_PEI_FILE_HANDLE *) DxeIplFileHeader, GetPeiServicesTablePointer());\r
}\r
\r
return Status;\r
//\r
typedef union {\r
PEI_CORE_ENTRY_POINT PeiCore;\r
- EFI_PEIM_ENTRY_POINT PeimEntry;\r
+ EFI_PEIM_ENTRY_POINT2 PeimEntry;\r
EFI_PEIM_NOTIFY_ENTRY_POINT PeimNotifyEntry;\r
EFI_DXE_IPL_PPI *DxeIpl;\r
EFI_PEI_PPI_DESCRIPTOR *PpiDescriptor;\r
**/\r
typedef\r
EFI_STATUS\r
-(EFIAPI *EFI_PEIM_ENTRY_POINT)(\r
- IN EFI_PEI_FILE_HANDLE *FfsHeader,\r
+(EFIAPI *EFI_PEIM_ENTRY_POINT2)(\r
+ IN EFI_PEI_FILE_HANDLE *FileHandle,\r
IN EFI_PEI_SERVICES **PeiServices\r
);\r
\r
typedef struct _EFI_HOB_LOAD_PEIM {\r
EFI_HOB_GENERIC_HEADER Header;\r
EFI_PEI_FILE_HANDLE FileHandle;\r
- EFI_PEIM_ENTRY_POINT EntryPoint;\r
- EFI_PEIM_ENTRY_POINT InMemEntryPoint;\r
+ EFI_PEIM_ENTRY_POINT2 EntryPoint;\r
+ EFI_PEIM_ENTRY_POINT2 InMemEntryPoint;\r
} EFI_HOB_LOAD_PEIM;\r
\r
\r