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>
\r
gArmPlatformTokenSpaceGuid.PcdCoreCount\r
\r
\r
gArmPlatformTokenSpaceGuid.PcdCoreCount\r
\r
- gEmbeddedTokenSpaceGuid.PcdPrePiCpuMemorySize\r
gEmbeddedTokenSpaceGuid.PcdPrePiCpuIoSize\r
\r
gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory\r
gEmbeddedTokenSpaceGuid.PcdPrePiCpuIoSize\r
\r
gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory\r
BuildStackHob (StacksBase, StacksSize);\r
\r
//TODO: Call CpuPei as a library\r
BuildStackHob (StacksBase, StacksSize);\r
\r
//TODO: Call CpuPei as a library\r
- BuildCpuHob (PcdGet8 (PcdPrePiCpuMemorySize), PcdGet8 (PcdPrePiCpuIoSize));\r
+ BuildCpuHob (ArmGetPhysicalAddressBits (), PcdGet8 (PcdPrePiCpuIoSize));\r
\r
// Set the Boot Mode\r
SetBootMode (BOOT_WITH_FULL_CONFIGURATION);\r
\r
// Set the Boot Mode\r
SetBootMode (BOOT_WITH_FULL_CONFIGURATION);\r