X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdePkg%2FLibrary%2FPeiPalLib%2FPeiPalLib.c;h=8209e1d478655e4d5bb879f673e99e139f081ab2;hb=701e8cc29a283d6d598695592ca2469cdacddf64;hp=37ac2568abae4b45ddd672d15ce4ccd076204216;hpb=3745e1a61eadb73b74129954c39004c175c21c01;p=mirror_edk2.git diff --git a/MdePkg/Library/PeiPalLib/PeiPalLib.c b/MdePkg/Library/PeiPalLib/PeiPalLib.c index 37ac2568ab..8209e1d478 100644 --- a/MdePkg/Library/PeiPalLib/PeiPalLib.c +++ b/MdePkg/Library/PeiPalLib/PeiPalLib.c @@ -1,16 +1,15 @@ /** @file PAL Call Services Function. - Copyright (c) 2006 -2008, Intel Corporation All rights - reserved. This program and the accompanying materials are - licensed and made available under the terms and conditions of - the BSD License which accompanies this distribution. The full - text of the license may be found at - http://opensource.org/licenses/bsd-license.php - - THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, - WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. - + Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.
+ This program and the accompanying materials + are licensed and made available under the terms and conditions of the BSD License + which accompanies this distribution. The full text of the license may be found at + http://opensource.org/licenses/bsd-license.php. + + THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, + WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. + **/ @@ -46,7 +45,7 @@ @param Arg3 The 3rd parameter for PAL procedure calls. @param Arg4 The 4th parameter for PAL procedure calls. - @return structure returned from the PAL Call procedure, including the status and return value. + @return Structure returned from the PAL Call procedure, including the status and return value. **/ PAL_CALL_RETURN @@ -58,13 +57,13 @@ PalCall ( IN UINT64 Arg4 ) { - UINT64 PalCallAddress; - PAL_CALL_RETURN ReturnVal; - CONST EFI_PEI_SERVICES **PeiServices; - EFI_STATUS Status; - EFI_SEC_PLATFORM_INFORMATION_PPI *SecPlatformPpi; - IPF_HANDOFF_STATUS IpfStatus; - UINT64 RecordSize; + UINT64 PalCallAddress; + PAL_CALL_RETURN ReturnVal; + CONST EFI_PEI_SERVICES **PeiServices; + EFI_STATUS Status; + EFI_SEC_PLATFORM_INFORMATION_PPI *SecPlatformPpi; + EFI_SEC_PLATFORM_INFORMATION_RECORD SecPlatformInfoRecord; + UINT64 RecordSize; // // Get PEI Service Table Pointer @@ -85,13 +84,13 @@ PalCall ( // // Retrieve PAL call address from platform information reported by the PPI // - RecordSize = sizeof (IpfStatus); + RecordSize = sizeof (SecPlatformInfoRecord); SecPlatformPpi->PlatformInformation ( PeiServices, &RecordSize, - (EFI_SEC_PLATFORM_INFORMATION_RECORD *) &IpfStatus + &SecPlatformInfoRecord ); - PalCallAddress = IpfStatus.PalCallAddress; + PalCallAddress = SecPlatformInfoRecord.ItaniumHealthFlags.PalCallAddress; ReturnVal = AsmPalCall (PalCallAddress, Index, Arg2, Arg3, Arg4);