]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/PeiPalLib/PeiPalLib.c
MdePkg: Clean up source files
[mirror_edk2.git] / MdePkg / Library / PeiPalLib / PeiPalLib.c
index 37ac2568abae4b45ddd672d15ce4ccd076204216..c35bf0118a575254aaeda312598f77ca4a3e3849 100644 (file)
@@ -1,12 +1,11 @@
 /** @file\r
   PAL Call Services Function.\r
 \r
-  Copyright (c) 2006 -2008, Intel Corporation All rights\r
-  reserved. This program and the accompanying materials are\r
-  licensed and made available under the terms and conditions of\r
-  the BSD License which accompanies this distribution.  The full\r
-  text of the license may be found at\r
-  http://opensource.org/licenses/bsd-license.php\r
+  Copyright (c) 2006 - 2018, 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
@@ -46,7 +45,7 @@
   @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
+  @return Structure returned from the PAL Call procedure, including the status and return value.\r
 \r
 **/\r
 PAL_CALL_RETURN\r
@@ -58,13 +57,13 @@ PalCall (
   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
@@ -85,13 +84,13 @@ PalCall (
   //\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