diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2018-11-26 22:34:05 +0100 |
---|---|---|
committer | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2018-11-29 18:55:26 +0100 |
commit | e0ec9a127f44e421ddddc1b597e7a255cd098258 (patch) | |
tree | e3d9f5ff91d8db70afe7b03245ed4bd7e5f09d41 /ArmPlatformPkg/PrePi/PrePi.c | |
parent | a3b6537144a64335f18a730b1bfffe9031a1f606 (diff) | |
download | edk2-e0ec9a127f44e421ddddc1b597e7a255cd098258.tar.gz edk2-e0ec9a127f44e421ddddc1b597e7a255cd098258.tar.bz2 edk2-e0ec9a127f44e421ddddc1b597e7a255cd098258.zip |
ArmPlatformPkg/PrePi: base GCD memory space size on CPU's PA range
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>
Acked-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
Diffstat (limited to 'ArmPlatformPkg/PrePi/PrePi.c')
-rw-r--r-- | ArmPlatformPkg/PrePi/PrePi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ArmPlatformPkg/PrePi/PrePi.c b/ArmPlatformPkg/PrePi/PrePi.c index 02cff7ddc2..245bdded1e 100644 --- a/ArmPlatformPkg/PrePi/PrePi.c +++ b/ArmPlatformPkg/PrePi/PrePi.c @@ -115,7 +115,7 @@ PrePiMain ( BuildStackHob (StacksBase, StacksSize);
//TODO: Call CpuPei as a library
- BuildCpuHob (PcdGet8 (PcdPrePiCpuMemorySize), PcdGet8 (PcdPrePiCpuIoSize));
+ BuildCpuHob (ArmGetPhysicalAddressBits (), PcdGet8 (PcdPrePiCpuIoSize));
if (ArmIsMpCore ()) {
// Only MP Core platform need to produce gArmMpCoreInfoPpiGuid
|