The function returns the pointer to PeiServices.\r
It will ASSERT() if the pointer to PeiServices is NULL.\r
\r
- @retval The pointer to PeiServices.\r
+ @return The pointer to PeiServices.\r
\r
**/\r
EFI_PEI_SERVICES **\r
return EFI_SUCCESS;\r
}\r
\r
+/**\r
+ The function set the pointer of PEI services immediately preceding the IDT table\r
+ according to PI specification.\r
+ \r
+ @param PeiServices The address of PeiServices pointer.\r
+**/\r
+VOID\r
+EFIAPI\r
+SetPeiServicesTablePointer (\r
+ EFI_PEI_SERVICES ** PeiServicesTablePointer\r
+ )\r
+{\r
+ AsmWriteKr7 ((UINT64)(UINTN)PeiServicesTablePointer);\r
+}\r
+ \r
+\r
+\r
\r