]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EmulatorPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointer.c
Update PeiServicesTablePointerLib instance to add new API MigratePeiServicesTablePointer
[mirror_edk2.git] / EmulatorPkg / Library / PeiServicesTablePointerLib / PeiServicesTablePointer.c
index c34997854b1d08f33a587f81e5968e3f68d7caf6..5aaf29638952e634f7874a396676373bfaae28f5 100644 (file)
@@ -133,4 +133,30 @@ PeiServicesTablePointerLibConstructor (
   return Status;\r
 }\r
 \r
+/**\r
+  Perform CPU specific actions required to migrate the PEI Services Table \r
+  pointer from temporary RAM to permanent RAM.\r
+\r
+  For IA32 CPUs, the PEI Services Table pointer is stored in the 4 bytes \r
+  immediately preceding the Interrupt Descriptor Table (IDT) in memory.\r
+  For X64 CPUs, the PEI Services Table pointer is stored in the 8 bytes \r
+  immediately preceding the Interrupt Descriptor Table (IDT) in memory.\r
+  For Itanium and ARM CPUs, a the PEI Services Table Pointer is stored in\r
+  a dedicated CPU register.  This means that there is no memory storage \r
+  associated with storing the PEI Services Table pointer, so no additional \r
+  migration actions are required for Itanium or ARM CPUs.\r
+\r
+**/\r
+VOID\r
+EFIAPI\r
+MigratePeiServicesTablePointer (\r
+  VOID\r
+  )\r
+{\r
+  //\r
+  //  PEI Services Table pointer is cached in the global variable. No additional \r
+  //  migration actions are required.\r
+  //\r
+  return;\r
+}\r
 \r