]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/PeimEntryPoint/PeimEntryPoint.c
remove some comments introduced by tools.
[mirror_edk2.git] / MdePkg / Library / PeimEntryPoint / PeimEntryPoint.c
1
2 /** @file
3 Entry point to a PEIM.
4
5 Copyright (c) 2006, Intel Corporation<BR>
6 All rights reserved. This program and the accompanying materials
7 are licensed and made available under the terms and conditions of the BSD License
8 which accompanies this distribution. The full text of the license may be found at
9 http://opensource.org/licenses/bsd-license.php
10
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13
14 **/
15
16
17 #include <PiPei.h>
18
19
20 #include <Library/PeimEntryPoint.h>
21 #include <Library/DebugLib.h>
22
23 /**
24 Image entry point of Peim.
25
26 @param FfsHeader Pointer to FFS header the loaded driver.
27 @param PeiServices Pointer to the PEI services.
28
29 @return Status returned by entry points of Peims.
30
31 **/
32 EFI_STATUS
33 EFIAPI
34 _ModuleEntryPoint (
35 IN EFI_FFS_FILE_HEADER *FfsHeader,
36 IN EFI_PEI_SERVICES **PeiServices
37 )
38 {
39 if (_gPeimRevision != 0) {
40 //
41 // Make sure that the PEI spec revision of the platform is >= PEI spec revision of the driver
42 //
43 ASSERT ((*PeiServices)->Hdr.Revision >= _gPeimRevision);
44 }
45
46 //
47 // Call constructor for all libraries
48 //
49 ProcessLibraryConstructorList (FfsHeader, PeiServices);
50
51 //
52 // Call the driver entry point
53 //
54 return ProcessModuleEntryPointList (FfsHeader, PeiServices);
55 }
56
57
58 /**
59 Wrapper of Peim image entry point.
60
61 @param FfsHeader Pointer to FFS header the loaded driver.
62 @param PeiServices Pointer to the PEI services.
63
64 @return Status returned by entry points of Peims.
65
66 **/
67 EFI_STATUS
68 EFIAPI
69 EfiMain (
70 IN EFI_FFS_FILE_HEADER *FfsHeader,
71 IN EFI_PEI_SERVICES **PeiServices
72 )
73 {
74 return _ModuleEntryPoint (FfsHeader, PeiServices);
75 }