Skip to content

Commit

Permalink
ArmPkg/CpuPei: base GCD memory space size on CPU's PA range
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ard Biesheuvel committed Nov 29, 2018
1 parent e36b243 commit a3b6537
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion ArmPkg/Drivers/CpuPei/CpuPei.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ InitializeCpuPeim (
ArmEnableBranchPrediction ();

// Publish the CPU memory and io spaces sizes
BuildCpuHob (PcdGet8 (PcdPrePiCpuMemorySize), PcdGet8 (PcdPrePiCpuIoSize));
BuildCpuHob (ArmGetPhysicalAddressBits (), PcdGet8 (PcdPrePiCpuIoSize));

// Only MP Core platform need to produce gArmMpCoreInfoPpiGuid
Status = PeiServicesLocatePpi (&gArmMpCoreInfoPpiGuid, 0, NULL, (VOID**)&ArmMpCoreInfoPpi);
Expand Down
1 change: 0 additions & 1 deletion ArmPkg/Drivers/CpuPei/CpuPei.inf
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
gArmMpCoreInfoGuid

[FixedPcd]
gEmbeddedTokenSpaceGuid.PcdPrePiCpuMemorySize
gEmbeddedTokenSpaceGuid.PcdPrePiCpuIoSize

[Depex]
Expand Down

0 comments on commit a3b6537

Please sign in to comment.