summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>2011-06-20 21:33:56 +0000
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>2011-06-20 21:33:56 +0000
commit149daa615f6225740549b5516fc1cd8627cae23f (patch)
tree272cab561904087eaaee5d3ff7ac88715bb3173a
parentfbcd5cea83f1142ef4127bfd0498c0069f5f0157 (diff)
downloadedk2-149daa615f6225740549b5516fc1cd8627cae23f.zip
edk2-149daa615f6225740549b5516fc1cd8627cae23f.tar.gz
edk2-149daa615f6225740549b5516fc1cd8627cae23f.tar.bz2
ArmPkg/CpuPei: Declare the CPU HOB
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11862 6f19259b-4bc3-4df7-8a09-765794883524
-rwxr-xr-xArmPkg/Drivers/CpuPei/CpuPei.c3
-rwxr-xr-xArmPkg/Drivers/CpuPei/CpuPei.inf2
2 files changed, 5 insertions, 0 deletions
diff --git a/ArmPkg/Drivers/CpuPei/CpuPei.c b/ArmPkg/Drivers/CpuPei/CpuPei.c
index d06ecd7..0a97745 100755
--- a/ArmPkg/Drivers/CpuPei/CpuPei.c
+++ b/ArmPkg/Drivers/CpuPei/CpuPei.c
@@ -163,6 +163,9 @@ Returns:
// Enable program flow prediction, if supported.
ArmEnableBranchPrediction ();
+ // publish the CPU memory and io spaces sizes
+ BuildCpuHob (PcdGet8 (PcdPrePiCpuMemorySize), PcdGet8 (PcdPrePiCpuIoSize));
+
ConfigureMmu();
return EFI_SUCCESS;
diff --git a/ArmPkg/Drivers/CpuPei/CpuPei.inf b/ArmPkg/Drivers/CpuPei/CpuPei.inf
index 4237d36..5016f8a 100755
--- a/ArmPkg/Drivers/CpuPei/CpuPei.inf
+++ b/ArmPkg/Drivers/CpuPei/CpuPei.inf
@@ -46,6 +46,8 @@
[Ppis]
[FixedPcd]
+ gEmbeddedTokenSpaceGuid.PcdPrePiCpuMemorySize
+ gEmbeddedTokenSpaceGuid.PcdPrePiCpuIoSize
[FeaturePcd]
gEmbeddedTokenSpaceGuid.PcdCacheEnable