TianoCore EDK2 master
Loading...
Searching...
No Matches
PeimEntryPoint.c
Go to the documentation of this file.
1
9#include <PiPei.h>
10
12#include <Library/DebugLib.h>
13
28EFIAPI
30 IN EFI_PEI_FILE_HANDLE FileHandle,
31 IN CONST EFI_PEI_SERVICES **PeiServices
32 )
33{
34 if (_gPeimRevision != 0) {
35 //
36 // Make sure that the PEI spec revision of the platform is >= PEI spec revision of the driver
37 //
38 ASSERT ((*PeiServices)->Hdr.Revision >= _gPeimRevision);
39 }
40
41 //
42 // Call constructor for all libraries
43 //
44 ProcessLibraryConstructorList (FileHandle, PeiServices);
45
46 //
47 // Call the driver entry point
48 //
49 return ProcessModuleEntryPointList (FileHandle, PeiServices);
50}
51
65EFIAPI
67 IN EFI_PEI_FILE_HANDLE FileHandle,
68 IN CONST EFI_PEI_SERVICES **PeiServices
69 )
70{
71 return _ModuleEntryPoint (FileHandle, PeiServices);
72}
VOID EFIAPI ProcessModuleEntryPointList(IN VOID *HobStart)
#define CONST
Definition: Base.h:259
#define IN
Definition: Base.h:279
EFI_STATUS EFIAPI _ModuleEntryPoint(IN EFI_PEI_FILE_HANDLE FileHandle, IN CONST EFI_PEI_SERVICES **PeiServices)
EFI_STATUS EFIAPI EfiMain(IN EFI_PEI_FILE_HANDLE FileHandle, IN CONST EFI_PEI_SERVICES **PeiServices)
CONST UINT32 _gPeimRevision
VOID * EFI_PEI_FILE_HANDLE
Definition: PiPeiCis.h:26
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29