]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkModulePkg/Core/Pei/PeiMain.h
Remove autogen.h from all dxs files, because autogen.h file has been included by...
[mirror_edk2.git] / EdkModulePkg / Core / Pei / PeiMain.h
index 91f90fea2024e3b1eb31dbe83f8cb2446bc34395..82121ac043612a19a519c1ea0bad8efa6640c645 100644 (file)
@@ -1,6 +1,6 @@
 /*++\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
@@ -24,11 +24,7 @@ Revision History
 #ifndef _PEI_MAIN_H_\r
 #define _PEI_MAIN_H_\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
@@ -119,6 +115,38 @@ typedef union {
   VOID                         *Raw;\r
 } PEI_CORE_TEMP_POINTERS;\r
 \r
+\r
+//\r
+// PeiCore function\r
+//\r
+EFI_STATUS\r
+EFIAPI\r
+PeiCore (\r
+  IN EFI_PEI_STARTUP_DESCRIPTOR  *PeiStartupDescriptor,\r
+  IN VOID                        *Data\r
+  )\r
+/*++\r
+\r
+Routine Description:\r
+\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
+  PeiStartupDescriptor - Information and services provided by SEC phase.\r
+  OldCoreData          - Pointer to old core data that is used to initialize the\r
+                         core's data areas.\r
+\r
+Returns:\r
+\r
+  This function never returns\r
+  EFI_NOT_FOUND        - Never reach\r
+\r
+--*/\r
+;\r
+\r
 //\r
 // Dispatcher support functions\r
 //\r
@@ -319,7 +347,7 @@ Returns:
 --*/\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