]>
Commit | Line | Data |
---|---|---|
e386b444 | 1 | /** @file\r |
2 | Entry point to a the PEI Core.\r | |
3 | \r | |
4 | Copyright (c) 2007, Intel Corporation<BR>\r | |
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 | |
16 | // Include common header file for this module.\r | |
17 | //\r | |
18 | #include "CommonHeader.h"\r | |
19 | \r | |
20 | /**\r | |
21 | Enrty point to PEI core.\r | |
22 | \r | |
23 | @param SecCoreData Points to a data structure containing\r | |
24 | information about the PEI core's\r | |
25 | operating environment, such as the size\r | |
26 | and location of temporary RAM, the stack\r | |
27 | location and the BFV location. The type\r | |
28 | EFI_SEC_PEI_HAND_OFF is\r | |
29 | \r | |
30 | @param PpiList Points to a list of one or more PPI\r | |
31 | descriptors to be installed initially by\r | |
32 | the PEI core. An empty PPI list consists\r | |
33 | of a single descriptor with the end-tag\r | |
34 | EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST.\r | |
35 | As part of its initialization phase, the\r | |
36 | PEI Foundation will add these SEC-hosted\r | |
37 | PPIs to its PPI database such that both\r | |
38 | the PEI Foundation and any modules can\r | |
39 | leverage the associated service calls\r | |
40 | and/or code in these early PPIs.\r | |
41 | \r | |
42 | **/\r | |
43 | EFI_STATUS\r | |
44 | EFIAPI\r | |
45 | _ModuleEntryPoint (\r | |
46 | IN CONST EFI_SEC_PEI_HAND_OFF *SecCoreData,\r | |
47 | IN CONST EFI_PEI_PPI_DESCRIPTOR *PpiList\r | |
48 | )\r | |
49 | {\r | |
50 | //\r | |
51 | // Call the PEI Core entry point\r | |
52 | //\r | |
53 | return ProcessModuleEntryPointList (SecCoreData, PpiList, NULL);\r | |
54 | }\r | |
55 | \r | |
56 | \r | |
57 | /**\r | |
58 | Wrapper of enrty point to PEI core.\r | |
59 | \r | |
60 | @param SecCoreData Points to a data structure containing\r | |
61 | information about the PEI core's\r | |
62 | operating environment, such as the size\r | |
63 | and location of temporary RAM, the stack\r | |
64 | location and the BFV location. The type\r | |
65 | EFI_SEC_PEI_HAND_OFF is\r | |
66 | \r | |
67 | @param PpiList Points to a list of one or more PPI\r | |
68 | descriptors to be installed initially by\r | |
69 | the PEI core. An empty PPI list consists\r | |
70 | of a single descriptor with the end-tag\r | |
71 | EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST.\r | |
72 | As part of its initialization phase, the\r | |
73 | PEI Foundation will add these SEC-hosted\r | |
74 | PPIs to its PPI database such that both\r | |
75 | the PEI Foundation and any modules can\r | |
76 | leverage the associated service calls\r | |
77 | and/or code in these early PPIs.\r | |
78 | \r | |
79 | **/\r | |
80 | EFI_STATUS\r | |
81 | EfiMain (\r | |
82 | IN CONST EFI_SEC_PEI_HAND_OFF *SecCoreData,\r | |
83 | IN CONST EFI_PEI_PPI_DESCRIPTOR *PpiList\r | |
84 | )\r | |
85 | {\r | |
86 | return _ModuleEntryPoint (SecCoreData, PpiList);\r | |
87 | }\r |