arm: arm11: allow unaligned memory access
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 19 Nov 2019 03:02:10 +0000 (04:02 +0100)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 19 Nov 2019 11:10:22 +0000 (12:10 +0100)
commitd47a774680d18ee5dea43d8b631048c3dc1a2b5f
tree6331d80b34db5030e1176d6c8ae4bda3a9f51f8a
parentb20bb09b2108c8368cce7d2801e5e746f4279e1f
arm: arm11: allow unaligned memory access

The UEFI spec mandates that unaligned memory access should be enabled if
supported by the CPU architecture.

This patch implements the function unaligned_access() to set the enable
unaligned data support flag and to clear the aligned flag in the system
control register (SCTLR). It is called when UEFI related commands like
bootefi are invoked.

Reported-by: Cristian Ciocaltea <cristian.ciocaltea@gmail.com>
Tested-by: Cristian Ciocaltea <cristian.ciocaltea@gmail.com>
Tested-by: Guillaume Gardet <Guillaume.Gardet@arm.com>
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
arch/arm/cpu/arm11/Makefile
arch/arm/cpu/arm11/sctlr.S [new file with mode: 0644]