]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointer.c
Change DxeRuntimeDriverLib name to UefiRuntimeLib.
[mirror_edk2.git] / MdePkg / Library / PeiServicesTablePointerLib / PeiServicesTablePointer.c
index 0240c38dbc0f603eb1cd5a8aca62b7409fece069..18d8c99b44df6c7ba6ed1542c93c493a5d4d45eb 100644 (file)
 \r
 static EFI_PEI_SERVICES  **gPeiServices;\r
 \r
+/**\r
+  The function returns the pointer to PEI services.\r
+  \r
+  The function returns the pointer to PEI services. \r
+  It will ASSERT() if the pointer to PEI services is NULL.\r
+\r
+  @retval  The pointer to PeiServices.\r
+\r
+**/\r
 EFI_PEI_SERVICES **\r
 GetPeiServicesTablePointer (\r
   VOID\r
   )\r
 {\r
+  ASSERT (gPeiServices != NULL);\r
   return gPeiServices;\r
 }\r
 \r
+\r
 /**\r
+  The constructor function caches the pointer to PEI services.\r
+  \r
+  The constructor function caches the pointer to PEI services. \r
+  It will always return EFI_SUCCESS.\r
+\r
+  @param  FfsHeader   Pointer to FFS header the loaded driver.\r
+  @param  PeiServices Pointer to the PEI services.\r
+  \r
+  @retval EFI_SUCCESS   The constructor always returns EFI_SUCCESS.\r
+\r
 **/\r
 EFI_STATUS\r
 PeiServicesTablePointerLibConstructor (\r