]>
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 // Include common header file for this module.
19 #include "CommonHeader.h"
22 Image entry point of Peim.
24 @param FfsHeader Pointer to FFS header the loaded driver.
25 @param PeiServices Pointer to the PEI services.
27 @return Status returned by entry points of Peims.
33 IN EFI_FFS_FILE_HEADER
*FfsHeader
,
34 IN EFI_PEI_SERVICES
**PeiServices
37 if (_gPeimRevision
!= 0) {
39 // Make sure that the PEI spec revision of the platform is >= PEI spec revision of the driver
41 ASSERT ((*PeiServices
)->Hdr
.Revision
>= _gPeimRevision
);
45 // Call constructor for all libraries
47 ProcessLibraryConstructorList (FfsHeader
, PeiServices
);
50 // Call the driver entry point
52 return ProcessModuleEntryPointList (FfsHeader
, PeiServices
);
57 Wrapper of Peim image entry point.
59 @param FfsHeader Pointer to FFS header the loaded driver.
60 @param PeiServices Pointer to the PEI services.
62 @return Status returned by entry points of Peims.
68 IN EFI_FFS_FILE_HEADER
*FfsHeader
,
69 IN EFI_PEI_SERVICES
**PeiServices
72 return _ModuleEntryPoint (FfsHeader
, PeiServices
);