\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