]> git.proxmox.com Git - mirror_edk2.git/commit
ArmVirtPkg/FdtClientDxe: honor memory DT node 'status' property
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 4 Apr 2017 12:55:44 +0000 (13:55 +0100)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 4 Apr 2017 14:24:59 +0000 (15:24 +0100)
commitd014044395b5ac2d37efb65f889dd8910869a332
treea0959146b844909ca06d92165c945abbb2a253fe
parent12b04866af2c348bf7e28e17b4ddc1eaf410211c
ArmVirtPkg/FdtClientDxe: honor memory DT node 'status' property

In some cases, (e.g., when running QEMU with TrustZone emulation), the
DT may contain memory nodes whose status is set to 'secure'. Similarly,
the status may be set to 'disabled' if the consumer of the DT image is
expected to treat it as if it weren't there.

So check whether a 'status' property is present, and if so, ignore the
node if the status is not 'okay'.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
ArmVirtPkg/FdtClientDxe/FdtClientDxe.c