]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/PeiPalLib/PeiPalLib.c
MdePkg/DxeServicesLib: introduce AllocatePeiAccessiblePages routine
[mirror_edk2.git] / MdePkg / Library / PeiPalLib / PeiPalLib.c
index d0d9b3ddd3b212921803008ab2ba0e7e0c73bf81..8209e1d478655e4d5bb879f673e99e139f081ab2 100644 (file)
@@ -1,11 +1,11 @@
 /** @file\r
   PAL Call Services Function.\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
-  All rights reserved. This program and the accompanying materials                          \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
+  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
@@ -57,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
@@ -84,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