X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdeModulePkg%2FCore%2FPei%2FPeiMain%2FPeiMain.c;h=32f875b688dbc946fbcea9557bc9dc96b830d3fe;hb=0308e20dc67c63e48211b140558ae3bd13a1cbf5;hp=6e032783d0bdd88142cd5d52be38993a54b47647;hpb=d949491623f84f8151275438c41afc92698f000c;p=mirror_edk2.git diff --git a/MdeModulePkg/Core/Pei/PeiMain/PeiMain.c b/MdeModulePkg/Core/Pei/PeiMain/PeiMain.c index 6e032783d0..32f875b688 100644 --- a/MdeModulePkg/Core/Pei/PeiMain/PeiMain.c +++ b/MdeModulePkg/Core/Pei/PeiMain/PeiMain.c @@ -86,7 +86,7 @@ STATIC EFI_PEI_SERVICES gPs = { @retval EFI_NOT_FOUND Never reach **/ -EFI_STATUS +VOID EFIAPI PeiCore ( IN CONST EFI_SEC_PEI_HAND_OFF *SecCoreData, @@ -156,7 +156,7 @@ PeiCore ( // // Initialize libraries that the PeiCore is linked against // - ProcessLibraryConstructorList (NULL, &PrivateData.PS); + ProcessLibraryConstructorList (NULL, (CONST EFI_PEI_SERVICES **)&PrivateData.PS); InitializeMemoryServices (&PrivateData, SecCoreData, OldCoreData); @@ -165,7 +165,7 @@ PeiCore ( // // Save PeiServicePointer so that it can be retrieved anywhere. // - SetPeiServicesTablePointer(&PrivateData.PS); + SetPeiServicesTablePointer((CONST EFI_PEI_SERVICES **) &PrivateData.PS); if (OldCoreData != NULL) { @@ -247,10 +247,11 @@ PeiCore ( &PrivateData.PS, PrivateData.HobList ); - + // + // Should never reach here. + // ASSERT_EFI_ERROR (Status); - - return EFI_NOT_FOUND; + CpuDeadLoop(); }