From 149daa615f6225740549b5516fc1cd8627cae23f Mon Sep 17 00:00:00 2001 From: oliviermartin Date: Mon, 20 Jun 2011 21:33:56 +0000 Subject: [PATCH] ArmPkg/CpuPei: Declare the CPU HOB git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11862 6f19259b-4bc3-4df7-8a09-765794883524 --- ArmPkg/Drivers/CpuPei/CpuPei.c | 3 +++ ArmPkg/Drivers/CpuPei/CpuPei.inf | 2 ++ 2 files changed, 5 insertions(+) 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