]>
git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/PeimEntryPoint/PeimEntryPoint.c
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.
17 Image entry point of Peim.
19 @param FfsHeader Pointer to FFS header the loaded driver.
20 @param PeiServices Pointer to the PEI services.
22 @return Status returned by entry points of Peims.
28 IN EFI_FFS_FILE_HEADER
*FfsHeader
,
29 IN EFI_PEI_SERVICES
**PeiServices
32 if (_gPeimRevision
!= 0) {
34 // Make sure that the PEI spec revision of the platform is >= PEI spec revision of the driver
36 ASSERT ((*PeiServices
)->Hdr
.Revision
>= _gPeimRevision
);
40 // Call constructor for all libraries
42 ProcessLibraryConstructorList (FfsHeader
, PeiServices
);
45 // Call the driver entry point
47 return ProcessModuleEntryPointList (FfsHeader
, PeiServices
);
52 Wrapper of Peim image entry point.
54 @param FfsHeader Pointer to FFS header the loaded driver.
55 @param PeiServices Pointer to the PEI services.
57 @return Status returned by entry points of Peims.
63 IN EFI_FFS_FILE_HEADER
*FfsHeader
,
64 IN EFI_PEI_SERVICES
**PeiServices
67 return _ModuleEntryPoint (FfsHeader
, PeiServices
);