]>
git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/PeimEntryPoint/PeimEntryPoint.c
0b9bca3b87433f2fadd2b3f8a70a02e26170a897
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
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.
20 #include <Library/PeimEntryPoint.h>
21 #include <Library/DebugLib.h>
24 Image entry point of Peim.
26 @param FfsHeader Pointer to FFS header the loaded driver.
27 @param PeiServices Pointer to the PEI services.
29 @return Status returned by entry points of Peims.
35 IN EFI_FFS_FILE_HEADER
*FfsHeader
,
36 IN EFI_PEI_SERVICES
**PeiServices
39 if (_gPeimRevision
!= 0) {
41 // Make sure that the PEI spec revision of the platform is >= PEI spec revision of the driver
43 ASSERT ((*PeiServices
)->Hdr
.Revision
>= _gPeimRevision
);
47 // Call constructor for all libraries
49 ProcessLibraryConstructorList (FfsHeader
, PeiServices
);
52 // Call the driver entry point
54 return ProcessModuleEntryPointList (FfsHeader
, PeiServices
);
59 Wrapper of Peim image entry point.
61 @param FfsHeader Pointer to FFS header the loaded driver.
62 @param PeiServices Pointer to the PEI services.
64 @return Status returned by entry points of Peims.
70 IN EFI_FFS_FILE_HEADER
*FfsHeader
,
71 IN EFI_PEI_SERVICES
**PeiServices
74 return _ModuleEntryPoint (FfsHeader
, PeiServices
);