audk/ArmVirtPkg
Ard Biesheuvel 94a3845be6 ArmVirtPkg/FdtParser: avoid unaligned accesses with the MMU off
When parsing the device tree to find the memory node, we are still running
with the MMU off, which means unaligned memory accesses are not allowed.
Since the FDT only mandates 32-bit alignment, 64-bit quantities are not
guaranteed to appear naturally aligned, and so should be accessed using
32-bit accesses instead.

Reported-by: Julien Grall <julien.grall@arm.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
2016-09-13 15:35:36 +01:00
..
FdtClientDxe ArmVirtPkg/VirtFdtDxe: move FDT config table installation to FdtClientDxe 2016-04-13 17:26:06 +02:00
HighMemDxe ArmVirtPkg: restrict mapping attributes of normal memory to EFI_MEMORY_WB 2016-09-08 10:35:22 +01:00
Include ArmVirtPkg: introduce FdtClientProtocol 2016-04-11 18:12:21 +02:00
Library ArmVirtPkg/FdtParser: avoid unaligned accesses with the MMU off 2016-09-13 15:35:36 +01:00
PrePi ArmVirtPkg: clean up assembly source files 2016-08-11 12:29:31 +02:00
VirtioFdtDxe ArmVirtPkg/VirtFdtDxe: remove Xenio handling and rename to VirtioFdtDxe 2016-04-13 17:26:07 +02:00
XenAcpiPlatformDxe ArmVirtPkg/ArmVirtXen: Add ACPI support for Virt Xen ARM 2016-06-28 13:37:25 +02:00
XenioFdtDxe ArmVirtPkg/ArmVirtXen: move from VirtFdtDxe to new XenioFdtDxe driver 2016-04-13 17:26:06 +02:00
ArmVirt.dsc.inc ArmVirtPkg: enable EBC interpreter for AArch64 2016-08-26 11:53:48 +01:00
ArmVirtPkg.dec ArmVirtPkg: remove PcdKludgeMapPciMmioAsCached 2016-09-01 22:56:04 +02:00
ArmVirtQemu.dsc ArmVirtPkg: replace all ArmLib resolutions with ArmBaseLib 2016-09-08 10:02:32 +01:00
ArmVirtQemu.fdf ArmVirtPkg: factor out Rules FDF section 2016-07-12 15:19:42 +02:00
ArmVirtQemuFvMain.fdf.inc ArmVirtPkg/ArmVirtQemu: switch to generic PciHostBridgeDxe 2016-09-02 21:41:01 +01:00
ArmVirtQemuKernel.dsc ArmVirtPkg: replace all ArmLib resolutions with ArmBaseLib 2016-09-08 10:02:32 +01:00
ArmVirtQemuKernel.fdf ArmVirtPkg: factor out Rules FDF section 2016-07-12 15:19:42 +02:00
ArmVirtRules.fdf.inc ArmVirtPkg: Add Ramdisk support to ArmVirtPkg platforms 2016-08-22 09:05:17 +02:00
ArmVirtXen.dsc ArmVirtPkg: replace all ArmLib resolutions with ArmBaseLib 2016-09-08 10:02:32 +01:00
ArmVirtXen.fdf ArmVirtPkg: enable EBC interpreter for AArch64 2016-08-26 11:53:48 +01:00
Contributions.txt ArmVirtPkg: add "Contributions.txt" and "License.txt" 2015-06-08 22:00:36 +00:00
License.txt ArmVirtPkg: add "Contributions.txt" and "License.txt" 2015-06-08 22:00:36 +00:00
VarStore.fdf.inc ArmVirtPkg: add FDF definition for empty varstore 2016-06-23 16:07:38 +02:00