ArmVirtPkg/HighMemDxe: check new regions against GCD memory space map
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 21 Mar 2017 09:12:56 +0000 (09:12 +0000)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 21 Mar 2017 10:41:25 +0000 (10:41 +0000)
commit5d5a19028a55a1fb42c9e4304fc84108d3206296
treeefb2f857bb8007c9bc8340e3bfbca74c77642994
parent60bd1e1269ff93390a90014144a835ad71fe2fa0
ArmVirtPkg/HighMemDxe: check new regions against GCD memory space map

Instead of looking at the PCD gArmTokenSpaceGuid.PcdSystemMemoryBase
to decide which DT node covers the memory we are already using, query
the GCD memory space map, which is the authoritative source for this
kind of information

This fixes a problem observed by Michael on platforms where this PCD
is of the 'Patchable' type, which means updates to its value do not
propagate to other modules.

Reported-by: Michael Zimmermann <sigmaepsilon92@gmail.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
ArmVirtPkg/HighMemDxe/HighMemDxe.c
ArmVirtPkg/HighMemDxe/HighMemDxe.inf