]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkModulePkg/Core/Pei/PeiMain.h
Add PeiCore function declaration in PeiMain.h file.
[mirror_edk2.git] / EdkModulePkg / Core / Pei / PeiMain.h
index 91f90fea2024e3b1eb31dbe83f8cb2446bc34395..8aa97350bb2c0a3ea93ed585b1e2f378655d931c 100644 (file)
@@ -29,7 +29,7 @@ Revision History
 //\r
 #define EFI_PEI_CORE_PRIVATE_GUID  \\r
   {0xd641a0f5, 0xcb7c, 0x4846, { 0xa3, 0x80, 0x1d, 0x01, 0xb4, 0xd9, 0xe3, 0xb9 } }\r
-\r
\r
 //\r
 // Pei Core private data structures\r
 //\r
@@ -119,6 +119,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