Fix ICC build error
authorlgao4 <lgao4@de2fecce-e211-0410-80a6-f3fac2684e05>
Fri, 12 Oct 2007 07:08:43 +0000 (07:08 +0000)
committerlgao4 <lgao4@de2fecce-e211-0410-80a6-f3fac2684e05>
Fri, 12 Oct 2007 07:08:43 +0000 (07:08 +0000)
git-svn-id: https://edk2.tianocore.org/svn/edk2/trunk@4108 de2fecce-e211-0410-80a6-f3fac2684e05

edk2/MdePkg/Library/PeiPalCallLib/PalCallLib.c

index 6bd8836..eeb30d6 100644 (file)
@@ -61,8 +61,7 @@ PalCall (
 {\r
   UINT64                            PalCallAddress;\r
   PAL_CALL_RETURN                   ReturnVal;\r
-\r
-  EFI_PEI_SERVICES                  **PeiServices;\r
+  CONST EFI_PEI_SERVICES            **PeiServices;\r
   EFI_STATUS                        Status;\r
   EFI_SEC_PLATFORM_INFORMATION_PPI  *SecPlatformPpi;\r
   IPF_HANDOFF_STATUS                IpfStatus;\r
@@ -71,7 +70,7 @@ PalCall (
   //\r
   // Get Pei Service Table Pointer\r
   //\r
-  PeiServices = GetPeiServicesTablePointer ();\r
+  PeiServices = (CONST EFI_PEI_SERVICES **) GetPeiServicesTablePointer ();\r
 \r
   //\r
   // Locate SEC Ppi\r