]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commit1965950931f9842e5b12054374dfca69b30db6a1
tree6331d80b34db5030e1176d6c8ae4bda3a9f51f8a
parent68c5da2cc97e54d01bf5c5fd8d1942295c950267
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]