]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/PeiServicesTablePointerLibKr7/PeiServicesTablePointer.c
Code Scrub the common includes in MdePkg.
[mirror_edk2.git] / MdePkg / Library / PeiServicesTablePointerLibKr7 / PeiServicesTablePointer.c
index 95d6d254478f53c076ed7fef4a24b95f0fc8cc27..7c1f7abfa25b7de33a64a2584dcc6aefa337d918 100644 (file)
@@ -23,7 +23,7 @@
   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
@@ -62,4 +62,21 @@ PeiServicesTablePointerLibConstructor (
   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