From 53f32495953afac85b4c85c52dcf0595a4b1999e Mon Sep 17 00:00:00 2001 From: xli24 Date: Sat, 27 Feb 2010 15:37:52 +0000 Subject: Update SEC Platform Information PPI according to PI 1.2 errata A. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10118 6f19259b-4bc3-4df7-8a09-765794883524 --- MdePkg/Library/PeiPalLib/PeiPalLib.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'MdePkg/Library') diff --git a/MdePkg/Library/PeiPalLib/PeiPalLib.c b/MdePkg/Library/PeiPalLib/PeiPalLib.c index d0d9b3ddd3..f47ed35b9b 100644 --- a/MdePkg/Library/PeiPalLib/PeiPalLib.c +++ b/MdePkg/Library/PeiPalLib/PeiPalLib.c @@ -1,7 +1,7 @@ /** @file PAL Call Services Function. - Copyright (c) 2006 - 2008, Intel Corporation
+ 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 @@ -57,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 @@ -84,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); -- cgit v1.2.3