]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Library/OldPeiCoreEntryPoint/PeiCoreEntryPoint.c
Enable Nt32 platform boot to DXE phase.
[mirror_edk2.git] / MdePkg / Library / OldPeiCoreEntryPoint / PeiCoreEntryPoint.c
CommitLineData
2e7a663d 1/** @file\r
2 Entry point to a the PEI Core.\r
3\r
4Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
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
15//\r
16// The package level header files this module uses\r
17//\r
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/OldPeiCoreEntryPoint.h>\r
26\r
27/**\r
28\r
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
51EFI_STATUS\r
52EFIAPI \r
53_ModuleEntryPoint(\r
54 IN EFI_PEI_STARTUP_DESCRIPTOR *PeiStartupDescriptor\r
55)\r
56{\r
57 return ProcessModuleEntryPointList (PeiStartupDescriptor, NULL);\r
58}\r
59\r
60\r
61/**\r
62 \r
63 Wrapper of enrty point to PEI core.\r
64 \r
65 @param SecCoreData Points to a data structure containing\r
66 information about the PEI core's\r
67 operating environment, such as the size\r
68 and location of temporary RAM, the stack\r
69 location and the BFV location. The type\r
70 EFI_SEC_PEI_HAND_OFF is\r
71\r
72 @param PpiList Points to a list of one or more PPI\r
73 descriptors to be installed initially by\r
74 the PEI core. An empty PPI list consists\r
75 of a single descriptor with the end-tag\r
76 EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST.\r
77 As part of its initialization phase, the\r
78 PEI Foundation will add these SEC-hosted\r
79 PPIs to its PPI database such that both\r
80 the PEI Foundation and any modules can\r
81 leverage the associated service calls\r
82 and/or code in these early PPIs.\r
83\r
84**/\r
85EFI_STATUS\r
86EFIAPI\r
87EfiMain (\r
88 IN EFI_PEI_STARTUP_DESCRIPTOR *PeiStartupDescriptor\r
89 )\r
90{\r
91 return _ModuleEntryPoint (PeiStartupDescriptor);\r
92}\r