]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/PeiPalLib/PeiPalLib.c
Update the copyright notice format
[mirror_edk2.git] / MdePkg / Library / PeiPalLib / PeiPalLib.c
index 07f9f38ad0cd642abd0fa5884549fb4bbff0fe35..bb426f43fb108acf8290111ca8489ecb35bcd2c8 100644 (file)
@@ -1,17 +1,15 @@
 /** @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
@@ -19,7 +17,7 @@
 \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
@@ -59,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
@@ -86,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