mirror of https://github.com/acidanthera/audk.git
72e514c907
NorFlashQemuLib is one of the last remaining drivers in ArmVirtPkg that are not based on the device tree received from QEMU. For ArmVirtQemu, this does not really matter, given that the NOR flash banks are always the same: the PEI code is linked to execute in place from flash bank #0, and the fixed varstore PCDs refer to flash bank #1 directly. However, ArmVirtQemuKernel can execute at any offset, permitting it to be used as an intermediary loader when running QEMU with secure world emulation enabled, in which case NOR flash bank #0 is secure only and contains the secure world firmware. In this case, NorFlashQemuLib should not expose the first flash bank at all. To prevent introducing too much internal knowledge about which flash bank is accessible under which circumstances, let's switch to using the DTB to decide which flash banks to expose to the NOR flash driver. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Laszlo Ersek <lersek@redhat.com> |
||
---|---|---|
.. | ||
FdtClientDxe | ||
HighMemDxe | ||
Include | ||
Library | ||
PlatformHasAcpiDtDxe | ||
PrePi | ||
VirtioFdtDxe | ||
XenAcpiPlatformDxe | ||
XenPlatformHasAcpiDtDxe | ||
XenioFdtDxe | ||
ArmVirt.dsc.inc | ||
ArmVirtPkg.dec | ||
ArmVirtQemu.dsc | ||
ArmVirtQemu.fdf | ||
ArmVirtQemuFvMain.fdf.inc | ||
ArmVirtQemuKernel.dsc | ||
ArmVirtQemuKernel.fdf | ||
ArmVirtRules.fdf.inc | ||
ArmVirtXen.dsc | ||
ArmVirtXen.fdf | ||
VarStore.fdf.inc |