7.3 Defining a PEIM's entry point
In the sample given above, ENTRY_POINT
is set to PeimSampleInitialize
. The
entry point value is the name of the entry point function.
Following is the prototype of the PEIMs' entry point.
EFI_STATUS
EFIAPI
PeimSampleInitialize (
IN EFI_PEI_FILE_HANDLE FileHandle,
IN CONST EFI_PEI_SERVICES PeiServices
);
Parameters:
FileHandle
The handle of the file being invoked.
PeiServices
An indirect pointer to the PEI Services Table.
If a PEIM is dispatched successfully, PeimSampleInitialize()
is invoked. The
parameters FileHandle and PeiServices may be used in this function.