summaryrefslogtreecommitdiffstats
path: root/ArmVirtPkg/PrePi/PrePi.c
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2018-11-26 22:35:02 +0100
committerArd Biesheuvel <ard.biesheuvel@linaro.org>2018-11-29 18:57:20 +0100
commitff3c97807a19cb5fecaa576af2fe2e0423c43526 (patch)
treea3eb60ad52adcd4085fbf247a8170af1338c7338 /ArmVirtPkg/PrePi/PrePi.c
parente0ec9a127f44e421ddddc1b597e7a255cd098258 (diff)
downloadedk2-ff3c97807a19cb5fecaa576af2fe2e0423c43526.tar.gz
edk2-ff3c97807a19cb5fecaa576af2fe2e0423c43526.tar.bz2
edk2-ff3c97807a19cb5fecaa576af2fe2e0423c43526.zip
ArmVirtPkg/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>
Diffstat (limited to 'ArmVirtPkg/PrePi/PrePi.c')
-rwxr-xr-xArmVirtPkg/PrePi/PrePi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ArmVirtPkg/PrePi/PrePi.c b/ArmVirtPkg/PrePi/PrePi.c
index f6abe2f201..61de6cfd4a 100755
--- a/ArmVirtPkg/PrePi/PrePi.c
+++ b/ArmVirtPkg/PrePi/PrePi.c
@@ -80,7 +80,7 @@ PrePiMain (
BuildStackHob (StacksBase, StacksSize);
//TODO: Call CpuPei as a library
- BuildCpuHob (PcdGet8 (PcdPrePiCpuMemorySize), PcdGet8 (PcdPrePiCpuIoSize));
+ BuildCpuHob (ArmGetPhysicalAddressBits (), PcdGet8 (PcdPrePiCpuIoSize));
// Set the Boot Mode
SetBootMode (BOOT_WITH_FULL_CONFIGURATION);