audk/ArmPlatformPkg/Drivers/NorFlashDxe
Ard Biesheuvel bdb10148fc ArmPlatformPkg/NorFlashDxe: use strictly aligned CopyMem()
The UEFI spec stipulates that unaligned accesses should be enabled
on CPUs that support them, which means all of them, given that we
no longer support pre-v7 ARM cores, and the AARCH64 bindings mandate
support for unaligned accesses unconditionally.

This means that one should not assume that CopyMem () is safe to call
on regions that may be mapped using device attributes, which is the
case for the NOR flash. Since we have no control over the mappings when
running under the OS, and given that write accesses require device
mappings, we should not call CopyMem () in the read path either, but
use our own implementation that is guaranteed to take alignment into
account.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2016-09-09 13:48:49 +01:00
..
NorFlashBlockIoDxe.c ArmPlatformPkg/NorFlashDxe: Make the driver more compliant with the UEFI specification 2013-04-14 09:25:34 +00:00
NorFlashDxe.c ArmPlatformPkg/NorFlashDxe: use strictly aligned CopyMem() 2016-09-09 13:48:49 +01:00
NorFlashDxe.h ArmPlatformPkg/NorFlashDxe: accept both non-secure and secure varstore GUIDs 2016-06-22 16:52:40 +02:00
NorFlashDxe.inf ArmPlatformPkg/NorFlashDxe: accept both non-secure and secure varstore GUIDs 2016-06-22 16:52:40 +02:00
NorFlashFvbDxe.c ArmPlatformPkg/NorFlashDxe: accept both non-secure and secure varstore GUIDs 2016-06-22 16:52:40 +02:00