mirror of https://github.com/acidanthera/audk.git
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:
parent
4c33f8b190
commit
cb9f629e88
|
@ -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,
|
||||||
|
|
|
@ -45,7 +45,7 @@
|
||||||
[Guids]
|
[Guids]
|
||||||
gFdtHobGuid
|
gFdtHobGuid
|
||||||
|
|
||||||
[FixedPcd]
|
[Pcd]
|
||||||
gArmTokenSpaceGuid.PcdSystemMemoryBase
|
gArmTokenSpaceGuid.PcdSystemMemoryBase
|
||||||
|
|
||||||
[Depex]
|
[Depex]
|
||||||
|
|
Loading…
Reference in New Issue