Update PEIM entry point to follow PEIM entry point.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6754 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
lgao4 2008-11-27 05:18:34 +00:00
parent 8bd22b8aaa
commit f0ba8fda36
2 changed files with 12 additions and 12 deletions

View File

@ -55,8 +55,8 @@ EFI_PEI_PPI_DESCRIPTOR mPpiListRecoveryBootMode = {
EFI_STATUS EFI_STATUS
EFIAPI EFIAPI
InitializeBootMode ( InitializeBootMode (
IN EFI_FFS_FILE_HEADER *FfsHeader, IN EFI_PEI_FILE_HANDLE FileHandle,
IN EFI_PEI_SERVICES **PeiServices IN CONST EFI_PEI_SERVICES **PeiServices
) )
/*++ /*++
@ -66,14 +66,14 @@ Routine Description:
Arguments: Arguments:
PeiServices - General purpose services available to every PEIM. FileHandle - Handle of the file being invoked.
PeiServices - Describes the list of possible PEI Services.
Returns: Returns:
Status - EFI_SUCCESS if the boot mode could be set Status - EFI_SUCCESS if the boot mode could be set
--*/ --*/
// TODO: FfsHeader - add argument and description to function comment
{ {
EFI_STATUS Status; EFI_STATUS Status;
UINTN BootMode; UINTN BootMode;
@ -86,14 +86,14 @@ Returns:
// //
BootMode = BOOT_WITH_FULL_CONFIGURATION; BootMode = BOOT_WITH_FULL_CONFIGURATION;
Status = (**PeiServices).SetBootMode ((const EFI_PEI_SERVICES **)PeiServices, (UINT8) BootMode); Status = (**PeiServices).SetBootMode (PeiServices, (UINT8) BootMode);
ASSERT_EFI_ERROR (Status); ASSERT_EFI_ERROR (Status);
Status = (**PeiServices).InstallPpi ((const EFI_PEI_SERVICES **)PeiServices, &mPpiListBootMode); Status = (**PeiServices).InstallPpi (PeiServices, &mPpiListBootMode);
ASSERT_EFI_ERROR (Status); ASSERT_EFI_ERROR (Status);
if (BootMode == BOOT_IN_RECOVERY_MODE) { if (BootMode == BOOT_IN_RECOVERY_MODE) {
Status = (**PeiServices).InstallPpi ((const EFI_PEI_SERVICES **)PeiServices, &mPpiListRecoveryBootMode); Status = (**PeiServices).InstallPpi (PeiServices, &mPpiListRecoveryBootMode);
ASSERT_EFI_ERROR (Status); ASSERT_EFI_ERROR (Status);
} }

View File

@ -36,8 +36,8 @@ EFI_PEI_PE_COFF_LOADER_PROTOCOL *mPeiEfiPeiPeCoffLoader;
The constructor must be called after PeCofferLoader guid structure is installed. The constructor must be called after PeCofferLoader guid structure is installed.
It will ASSERT() if PeCofferLoader guid structure is not installed. It will ASSERT() if PeCofferLoader guid structure is not installed.
@param FfsHeader Pointer to FFS header the loaded driver. @param FileHandle Handle of the file being invoked.
@param PeiServices Pointer to the PEI services. @param PeiServices Describes the list of possible PEI Services.
@retval EFI_SUCCESS The constructor always returns EFI_SUCCESS. @retval EFI_SUCCESS The constructor always returns EFI_SUCCESS.
@ -45,8 +45,8 @@ EFI_PEI_PE_COFF_LOADER_PROTOCOL *mPeiEfiPeiPeCoffLoader;
EFI_STATUS EFI_STATUS
EFIAPI EFIAPI
PeiNt32PeCoffLibConstructor ( PeiNt32PeCoffLibConstructor (
IN EFI_FFS_FILE_HEADER *FfsHeader, IN EFI_PEI_FILE_HANDLE FileHandle,
IN EFI_PEI_SERVICES **PeiServices IN CONST EFI_PEI_SERVICES **PeiServices
) )
{ {
EFI_STATUS Status; EFI_STATUS Status;
@ -64,7 +64,7 @@ PeiNt32PeCoffLibConstructor (
// GuidHob is not ready, try to locate PeCoffLoader guid structure. // GuidHob is not ready, try to locate PeCoffLoader guid structure.
// //
Status = (*PeiServices)->LocatePpi ( Status = (*PeiServices)->LocatePpi (
(CONST EFI_PEI_SERVICES **)PeiServices, PeiServices,
&gEfiPeiPeCoffLoaderGuid, &gEfiPeiPeCoffLoaderGuid,
0, 0,
NULL, NULL,