OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
PeimEntryPoint.c
Go to the documentation of this file.
1
9#include <PiPei.h>
10
11#include <Library/PeimEntryPoint.h>
12#include <Library/DebugLib.h>
13#include <Library/PcdLib.h>
14
28EFI_STATUS
29EFIAPI
31 IN EFI_PEI_FILE_HANDLE FileHandle,
32 IN CONST EFI_PEI_SERVICES **PeiServices
33 )
34{
35 if (_gPeimRevision != 0) {
36 //
37 // Make sure that the PEI spec revision of the platform is >= PEI spec revision of the driver
38 //
39 ASSERT ((*PeiServices)->Hdr.Revision >= _gPeimRevision);
40 }
41
42 //
43 // Call constructor for all libraries
44 //
45 ProcessLibraryConstructorList (FileHandle, PeiServices);
46
47 //
48 // Call the driver entry point
49 //
50 return ProcessModuleEntryPointList (FileHandle, PeiServices);
51}
52
65EFI_STATUS
66EFIAPI
68 IN EFI_PEI_FILE_HANDLE FileHandle,
69 IN CONST EFI_PEI_SERVICES **PeiServices
70 )
71{
72 return _ModuleEntryPoint (FileHandle, PeiServices);
73}
EFI_STATUS EFIAPI _ModuleEntryPoint(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
Definition CanaryDummy.c:40
EFI_STATUS EFIAPI EfiMain(IN EFI_PEI_FILE_HANDLE FileHandle, IN CONST EFI_PEI_SERVICES **PeiServices)
EFI_STATUS EFIAPI _ModuleEntryPointReal(IN EFI_PEI_FILE_HANDLE FileHandle, IN CONST EFI_PEI_SERVICES **PeiServices)
#define ASSERT(x)
Definition coder.h:55