]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointer.c
Base on PI spec, GetPeiServicesTablePointer is updated to return CONST EFI_PEI_SERVIC...
[mirror_edk2.git] / MdePkg / Library / PeiServicesTablePointerLib / PeiServicesTablePointer.c
index b601545b8caa7c2f65e88f87f801925954359926..fd5bbe7192e2f9c81cb57cc627e5b25e7aa90974 100644 (file)
@@ -4,7 +4,7 @@
   This library is used for PEIM which does executed from flash device directly but\r
   executed in memory.\r
 \r
-  Copyright (c) 2006, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
   All rights reserved. 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
@@ -44,13 +44,13 @@ SetPeiServicesTablePointer (
   @retval  The pointer to PeiServices.\r
 \r
 **/\r
-EFI_PEI_SERVICES **\r
+CONST EFI_PEI_SERVICES **\r
 GetPeiServicesTablePointer (\r
   VOID\r
   )\r
 {\r
   ASSERT (gPeiServices != NULL);\r
-  return gPeiServices;\r
+  return (CONST EFI_PEI_SERVICES **) gPeiServices;\r
 }\r
 \r
 \r