]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BeagleBoardPkg/PrePi: base GCD memory space size on CPU's PA range
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Mon, 26 Nov 2018 21:36:33 +0000 (22:36 +0100)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Thu, 29 Nov 2018 17:57:31 +0000 (18:57 +0100)
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>
BeagleBoardPkg/PrePi/PeiUniCore.inf
BeagleBoardPkg/PrePi/PrePi.c

index 3d72bc5b46e1c1c3ff8a782bc09aff235919d6aa..53c71d8eafc263544212dbacaad4dfa8a1773ba2 100644 (file)
@@ -86,7 +86,6 @@
 \r
   gArmPlatformTokenSpaceGuid.PcdCoreCount\r
 \r
-  gEmbeddedTokenSpaceGuid.PcdPrePiCpuMemorySize\r
   gEmbeddedTokenSpaceGuid.PcdPrePiCpuIoSize\r
 \r
   gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory\r
index 46f63f40c46e4b236f8998fdc22d5bc283ad95a0..bc9b0c80b84c93db2d9f02574966a4531168d052 100644 (file)
@@ -110,7 +110,7 @@ PrePiMain (
   BuildStackHob (StacksBase, StacksSize);\r
 \r
   //TODO: Call CpuPei as a library\r
-  BuildCpuHob (PcdGet8 (PcdPrePiCpuMemorySize), PcdGet8 (PcdPrePiCpuIoSize));\r
+  BuildCpuHob (ArmGetPhysicalAddressBits (), PcdGet8 (PcdPrePiCpuIoSize));\r
 \r
   // Store timer value logged at the beginning of firmware image execution\r
   Performance.ResetEnd = GetTimeInNanoSecond (StartTimeStamp);\r