Derive the size of the GCD memory space map directly from the CPU's
information registers rather than from the PcdPrePiCpuMemorySize PCD,
which will be removed.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
ArmEnableBranchPrediction ();\r
\r
// Publish the CPU memory and io spaces sizes\r
ArmEnableBranchPrediction ();\r
\r
// Publish the CPU memory and io spaces sizes\r
- BuildCpuHob (PcdGet8 (PcdPrePiCpuMemorySize), PcdGet8 (PcdPrePiCpuIoSize));\r
+ BuildCpuHob (ArmGetPhysicalAddressBits (), PcdGet8 (PcdPrePiCpuIoSize));\r
\r
// Only MP Core platform need to produce gArmMpCoreInfoPpiGuid\r
Status = PeiServicesLocatePpi (&gArmMpCoreInfoPpiGuid, 0, NULL, (VOID**)&ArmMpCoreInfoPpi);\r
\r
// Only MP Core platform need to produce gArmMpCoreInfoPpiGuid\r
Status = PeiServicesLocatePpi (&gArmMpCoreInfoPpiGuid, 0, NULL, (VOID**)&ArmMpCoreInfoPpi);\r
gArmMpCoreInfoGuid\r
\r
[FixedPcd]\r
gArmMpCoreInfoGuid\r
\r
[FixedPcd]\r
- gEmbeddedTokenSpaceGuid.PcdPrePiCpuMemorySize\r
gEmbeddedTokenSpaceGuid.PcdPrePiCpuIoSize\r
\r
[Depex]\r
gEmbeddedTokenSpaceGuid.PcdPrePiCpuIoSize\r
\r
[Depex]\r