ArmVirtPkg/HighMemDxe: allow patchable PCD for PcdSystemMemoryBase

Redefine the reference to PcdSystemMemoryBase in HighMemDxe.inf as
a plain [Pcd] rather than [FixedPcd] (and fix up the code as
appropriate). This allows us to align ArmVirtQemuKernel with
ArmVirtQemu, given that the former uses a patchable PCD not a fixed
PCD.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
This commit is contained in:
Ard Biesheuvel 2016-07-12 14:54:28 +02:00
parent 4c33f8b190
commit cb9f629e88
2 changed files with 2 additions and 2 deletions

View File

@ -74,7 +74,7 @@ InitializeHighMemDxe (
CurBase = fdt64_to_cpu (((UINT64 *)RegProp)[0]); CurBase = fdt64_to_cpu (((UINT64 *)RegProp)[0]);
CurSize = fdt64_to_cpu (((UINT64 *)RegProp)[1]); CurSize = fdt64_to_cpu (((UINT64 *)RegProp)[1]);
if (FixedPcdGet64 (PcdSystemMemoryBase) != CurBase) { if (PcdGet64 (PcdSystemMemoryBase) != CurBase) {
Status = gDS->AddMemorySpace ( Status = gDS->AddMemorySpace (
EfiGcdMemoryTypeSystemMemory, EfiGcdMemoryTypeSystemMemory,
CurBase, CurSize, CurBase, CurSize,

View File

@ -45,7 +45,7 @@
[Guids] [Guids]
gFdtHobGuid gFdtHobGuid
[FixedPcd] [Pcd]
gArmTokenSpaceGuid.PcdSystemMemoryBase gArmTokenSpaceGuid.PcdSystemMemoryBase
[Depex] [Depex]