diff options
author | Gao, Liming <liming.gao@intel.com> | 2014-01-15 11:51:38 +0000 |
---|---|---|
committer | oliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524> | 2014-01-15 11:51:38 +0000 |
commit | 382e45e7fd04312e54affee81db2dd0a2be5d496 (patch) | |
tree | 465da28e5a64f028d58c15fe29554d02991bdea6 /ArmPlatformPkg/Library | |
parent | 5d6a5aee0ba4231fe0227c7c08e4203e4ad6d377 (diff) | |
download | edk2-platforms-382e45e7fd04312e54affee81db2dd0a2be5d496.tar.xz |
ArmPlatformPkg/PeiServicesTablePointerLib: Update PeiServicesTablePointerLib instance to add new API MigratePeiServicesTablePointer()
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Gao, Liming <liming.gao@intel.com>
Reviewed-By: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15120 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ArmPlatformPkg/Library')
-rw-r--r-- | ArmPlatformPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointer.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/ArmPlatformPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointer.c b/ArmPlatformPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointer.c index cb0041f90d..8be91c000d 100644 --- a/ArmPlatformPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointer.c +++ b/ArmPlatformPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointer.c @@ -67,4 +67,24 @@ GetPeiServicesTablePointer ( return (CONST EFI_PEI_SERVICES**)PeiServicesTablePointer;
}
+/**
+ Perform CPU specific actions required to migrate the PEI Services Table
+ pointer from temporary RAM to permanent RAM.
+
+ For IA32 CPUs, the PEI Services Table pointer is stored in the 4 bytes
+ immediately preceding the Interrupt Descriptor Table (IDT) in memory.
+ For X64 CPUs, the PEI Services Table pointer is stored in the 8 bytes
+ immediately preceding the Interrupt Descriptor Table (IDT) in memory.
+ For Itanium and ARM CPUs, a the PEI Services Table Pointer is stored in
+ a dedicated CPU register. This means that there is no memory storage
+ associated with storing the PEI Services Table pointer, so no additional
+ migration actions are required for Itanium or ARM CPUs.
+**/
+VOID
+EFIAPI
+MigratePeiServicesTablePointer (
+ )
+{
+ return;
+}
|