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