/** @file\r
PAL Call Services Function.\r
\r
- Copyright (c) 2006 - 2008 Intel Corporation. All rights reserved\r
- This software and associated documentation (if any) is furnished\r
- under a license and may only be used or copied in accordance\r
- with the terms of the license. Except as permitted by such\r
- license, no part of this software or documentation may be\r
- reproduced, stored in a retrieval system, or transmitted in any\r
- form or by any means without the express written consent of\r
- Intel Corporation.\r
-\r
- Module Name: PalCallLib.c\r
-\r
+ Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+ This program and the accompanying materials \r
+ are licensed and made available under the terms and conditions of the BSD License \r
+ which accompanies this distribution. The full text of the license may be found at \r
+ http://opensource.org/licenses/bsd-license.php. \r
+\r
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
+ \r
**/\r
\r
\r
\r
#include <Ppi/SecPlatformInformation.h>\r
\r
-#include <Library/PalCallLib.h>\r
+#include <Library/PalLib.h>\r
#include <Library/PeiServicesTablePointerLib.h>\r
#include <Library/PeiServicesLib.h>\r
#include <Library/BaseLib.h>\r
returned or undefined result may occur during the execution of the procedure.\r
This function is only available on IPF.\r
\r
- @param Index The PAL procedure Index number.\r
- @param Arg2 The 2nd parameter for PAL procedure calls.\r
- @param Arg3 The 3rd parameter for PAL procedure calls.\r
- @param Arg4 The 4th parameter for PAL procedure calls.\r
+ @param Index The PAL procedure Index number.\r
+ @param Arg2 The 2nd parameter for PAL procedure calls.\r
+ @param Arg3 The 3rd parameter for PAL procedure calls.\r
+ @param Arg4 The 4th parameter for PAL procedure calls.\r
\r
@return Structure returned from the PAL Call procedure, including the status and return value.\r
\r
IN UINT64 Arg4\r
)\r
{\r
- UINT64 PalCallAddress;\r
- PAL_CALL_RETURN ReturnVal;\r
- CONST EFI_PEI_SERVICES **PeiServices;\r
- EFI_STATUS Status;\r
- EFI_SEC_PLATFORM_INFORMATION_PPI *SecPlatformPpi;\r
- IPF_HANDOFF_STATUS IpfStatus;\r
- UINT64 RecordSize;\r
+ UINT64 PalCallAddress;\r
+ PAL_CALL_RETURN ReturnVal;\r
+ CONST EFI_PEI_SERVICES **PeiServices;\r
+ EFI_STATUS Status;\r
+ EFI_SEC_PLATFORM_INFORMATION_PPI *SecPlatformPpi;\r
+ EFI_SEC_PLATFORM_INFORMATION_RECORD SecPlatformInfoRecord;\r
+ UINT64 RecordSize;\r
\r
//\r
// Get PEI Service Table Pointer\r
//\r
// Retrieve PAL call address from platform information reported by the PPI\r
//\r
- RecordSize = sizeof (IpfStatus);\r
+ RecordSize = sizeof (SecPlatformInfoRecord);\r
SecPlatformPpi->PlatformInformation (\r
PeiServices,\r
&RecordSize,\r
- (EFI_SEC_PLATFORM_INFORMATION_RECORD *) &IpfStatus\r
+ &SecPlatformInfoRecord\r
);\r
- PalCallAddress = IpfStatus.PalCallAddress;\r
+ PalCallAddress = SecPlatformInfoRecord.ItaniumHealthFlags.PalCallAddress;\r
\r
ReturnVal = AsmPalCall (PalCallAddress, Index, Arg2, Arg3, Arg4);\r
\r