]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.c
Synchronize function comment in
[mirror_edk2.git] / MdePkg / Library / PeiCoreEntryPoint / PeiCoreEntryPoint.c
CommitLineData
e386b444 1/** @file\r
2 Entry point to a the PEI Core.\r
3\r
c7d265a9 4Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
e386b444 5All rights reserved. This program and the accompanying materials\r
6are licensed and made available under the terms and conditions of the BSD License\r
7which accompanies this distribution. The full text of the license may be found at\r
8http://opensource.org/licenses/bsd-license.php\r
9\r
10THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13**/\r
14\r
c892d846 15\r
c7d265a9 16#include <PiPei.h>\r
c892d846 17\r
c7d265a9 18//\r
19// The Library classes this module produced\r
20//\r
21#include <Library/PeiCoreEntryPoint.h>\r
d00afc4e 22#include <Library/BaseLib.h>\r
f2084bda 23#include <Library/DebugLib.h>\r
e386b444 24\r
25/**\r
c7d265a9 26\r
e386b444 27 Enrty point to PEI core.\r
28\r
29 @param SecCoreData Points to a data structure containing\r
30 information about the PEI core's\r
31 operating environment, such as the size\r
32 and location of temporary RAM, the stack\r
33 location and the BFV location. The type\r
34 EFI_SEC_PEI_HAND_OFF is\r
35\r
36 @param PpiList Points to a list of one or more PPI\r
37 descriptors to be installed initially by\r
38 the PEI core. An empty PPI list consists\r
39 of a single descriptor with the end-tag\r
40 EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST.\r
41 As part of its initialization phase, the\r
42 PEI Foundation will add these SEC-hosted\r
43 PPIs to its PPI database such that both\r
44 the PEI Foundation and any modules can\r
45 leverage the associated service calls\r
46 and/or code in these early PPIs.\r
47\r
48**/\r
c7d265a9 49VOID\r
50EFIAPI \r
51_ModuleEntryPoint(\r
52 IN CONST EFI_SEC_PEI_HAND_OFF *SecCoreData,\r
53 IN CONST EFI_PEI_PPI_DESCRIPTOR *PpiList\r
54)\r
e386b444 55{\r
c7d265a9 56 ProcessModuleEntryPointList (SecCoreData, PpiList, NULL);\r
f2084bda 57 \r
58 //\r
59 // Should never return\r
60 //\r
61 ASSERT(FALSE);\r
62 CpuDeadLoop (); \r
e386b444 63}\r
64\r
65\r
66/**\r
c7d265a9 67 \r
e386b444 68 Wrapper of enrty point to PEI core.\r
c7d265a9 69 \r
e386b444 70 @param SecCoreData Points to a data structure containing\r
71 information about the PEI core's\r
72 operating environment, such as the size\r
73 and location of temporary RAM, the stack\r
74 location and the BFV location. The type\r
75 EFI_SEC_PEI_HAND_OFF is\r
76\r
77 @param PpiList Points to a list of one or more PPI\r
78 descriptors to be installed initially by\r
79 the PEI core. An empty PPI list consists\r
80 of a single descriptor with the end-tag\r
81 EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST.\r
82 As part of its initialization phase, the\r
83 PEI Foundation will add these SEC-hosted\r
84 PPIs to its PPI database such that both\r
85 the PEI Foundation and any modules can\r
86 leverage the associated service calls\r
87 and/or code in these early PPIs.\r
88\r
89**/\r
c7d265a9 90VOID\r
91EFIAPI\r
e386b444 92EfiMain (\r
c7d265a9 93 IN CONST EFI_SEC_PEI_HAND_OFF *SecCoreData,\r
94 IN CONST EFI_PEI_PPI_DESCRIPTOR *PpiList\r
e386b444 95 )\r
96{\r
c7d265a9 97 _ModuleEntryPoint (SecCoreData, PpiList);\r
e386b444 98}\r