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