]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Update PeiServicesTablePointerLib instance to add new API MigratePeiServicesTablePointer
authorGao, Liming <liming.gao@intel.com>
Thu, 16 Jan 2014 02:42:17 +0000 (02:42 +0000)
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 16 Jan 2014 02:42:17 +0000 (02:42 +0000)
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Gao, Liming <liming.gao@intel.com>
Reviewed-By: Andrew Fish <afish@apple.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15128 6f19259b-4bc3-4df7-8a09-765794883524

EmulatorPkg/Library/PeiCoreServicesTablePointerLib/PeiServicesTablePointer.c
EmulatorPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointer.c
EmulatorPkg/Library/PeiServicesTablePointerLibMagicPage/PeiServicesTablePointer.c

index 10f588843d002400823aae3f061ab0bcc4bcded9..06f995b0d37819eab6650d235fdd09a020b4913a 100644 (file)
@@ -88,4 +88,30 @@ PeiServicesTablePointerLibConstructor (
   return EFI_SUCCESS;\r
 }\r
 \r
   return EFI_SUCCESS;\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
 \r
index c34997854b1d08f33a587f81e5968e3f68d7caf6..5aaf29638952e634f7874a396676373bfaae28f5 100644 (file)
@@ -133,4 +133,30 @@ PeiServicesTablePointerLibConstructor (
   return Status;\r
 }\r
 \r
   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
 \r
index 38ec0ea1377620424cd15c392c626af483602ab5..fa04ed3e045d9c47489e2489357c504cc367193a 100644 (file)
@@ -71,5 +71,31 @@ GetPeiServicesTablePointer (
   return PeiServicesTablePointer;\r
 }\r
 \r
   return PeiServicesTablePointer;\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 SRAM. No additional \r
+  //  migration actions are required.\r
+  //\r
+  return;\r
+}\r
 \r
 \r
 \r
 \r