/*++\r
\r
-Copyright (c) 2006, Intel Corporation\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
#ifndef _PEI_MAIN_H_\r
#define _PEI_MAIN_H_\r
\r
-//#ifdef EFI64\r
-//#include "SalApi.h"\r
-//#endif\r
-\r
-//\r
-//Build private HOB to PEI core to transfer old NEM-range data to new NEM-range\r
-//\r
-#define EFI_PEI_CORE_PRIVATE_GUID \\r
- {0xd641a0f5, 0xcb7c, 0x4846, { 0xa3, 0x80, 0x1d, 0x01, 0xb4, 0xd9, 0xe3, 0xb9 } }\r
+extern EFI_GUID gEfiPeiCorePrivateGuid;\r
\r
//\r
// Pei Core private data structures\r
\r
\r
//\r
-// Main PEI entry\r
+// PeiCore function\r
//\r
-\r
EFI_STATUS\r
EFIAPI\r
PeiCore (\r
IN EFI_PEI_STARTUP_DESCRIPTOR *PeiStartupDescriptor,\r
- IN PEI_CORE_INSTANCE *OldCoreData\r
+ IN VOID *Data\r
)\r
/*++\r
\r
Routine Description:\r
\r
- Main entry point to Pei Core. After switching stack in the PEI core,\r
- it will restart with the old core data.\r
+ The entry routine to Pei Core, invoked by PeiMain during transition\r
+ from SEC to PEI. After switching stack in the PEI core, it will restart\r
+ with the old core data.\r
\r
Arguments:\r
\r
Returns:\r
\r
This function never returns\r
+ EFI_NOT_FOUND - Never reach\r
\r
--*/\r
;\r
\r
-\r
//\r
// Dispatcher support functions\r
//\r
--*/\r
;\r
\r
-#ifdef EFI64\r
+#if defined (MDE_CPU_IPF)\r
//\r
// In Ipf we should make special changes for the PHIT pointers to support\r
// recovery boot in cache mode.\r