summaryrefslogtreecommitdiff
path: root/ArmPkg/Drivers
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 /ArmPkg/Drivers
parentfbcd5cea83f1142ef4127bfd0498c0069f5f0157 (diff)
downloadedk2-platforms-149daa615f6225740549b5516fc1cd8627cae23f.tar.xz
ArmPkg/CpuPei: Declare the CPU HOB
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11862 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ArmPkg/Drivers')
-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 d06ecd743e..0a97745fa3 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 4237d365f9..5016f8a5cd 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