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