summaryrefslogtreecommitdiff
path: root/Nt32Pkg/BootModePei
diff options
context:
space:
mode:
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2008-11-27 05:18:34 +0000
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2008-11-27 05:18:34 +0000
commitf0ba8fda369980905c1577c5e8492815050af802 (patch)
treed7842f5db2557aaf2a6c97679505dc4ef9165193 /Nt32Pkg/BootModePei
parent8bd22b8aaa4f5d82e6d9493cb369c8bdc74878fe (diff)
downloadedk2-platforms-f0ba8fda369980905c1577c5e8492815050af802.tar.xz
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
Diffstat (limited to 'Nt32Pkg/BootModePei')
-rw-r--r--Nt32Pkg/BootModePei/BootModePei.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/Nt32Pkg/BootModePei/BootModePei.c b/Nt32Pkg/BootModePei/BootModePei.c
index d68f1d94d8..97cc27c6b7 100644
--- a/Nt32Pkg/BootModePei/BootModePei.c
+++ b/Nt32Pkg/BootModePei/BootModePei.c
@@ -55,8 +55,8 @@ EFI_PEI_PPI_DESCRIPTOR mPpiListRecoveryBootMode = {
EFI_STATUS
EFIAPI
InitializeBootMode (
- IN EFI_FFS_FILE_HEADER *FfsHeader,
- IN EFI_PEI_SERVICES **PeiServices
+ IN EFI_PEI_FILE_HANDLE FileHandle,
+ IN CONST EFI_PEI_SERVICES **PeiServices
)
/*++
@@ -66,14 +66,14 @@ Routine Description:
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:
Status - EFI_SUCCESS if the boot mode could be set
--*/
-// TODO: FfsHeader - add argument and description to function comment
{
EFI_STATUS Status;
UINTN BootMode;
@@ -86,14 +86,14 @@ Returns:
//
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);
- Status = (**PeiServices).InstallPpi ((const EFI_PEI_SERVICES **)PeiServices, &mPpiListBootMode);
+ Status = (**PeiServices).InstallPpi (PeiServices, &mPpiListBootMode);
ASSERT_EFI_ERROR (Status);
if (BootMode == BOOT_IN_RECOVERY_MODE) {
- Status = (**PeiServices).InstallPpi ((const EFI_PEI_SERVICES **)PeiServices, &mPpiListRecoveryBootMode);
+ Status = (**PeiServices).InstallPpi (PeiServices, &mPpiListRecoveryBootMode);
ASSERT_EFI_ERROR (Status);
}