summaryrefslogtreecommitdiffstats
path: root/arch/arm/mm
diff options
context:
space:
mode:
authorDave Martin2012-11-22 12:50:43 +0100
committerRussell King2012-11-23 14:02:03 +0100
commit5010192d5ae589002c4453d6c6e662e5e9acae59 (patch)
tree268a95f0e369be3534a7ac1c82a53c590c43e77f /arch/arm/mm
parentARM: 7572/1: proc-v6.S: fix comment (diff)
downloadkernel-qcow2-linux-5010192d5ae589002c4453d6c6e662e5e9acae59.tar.gz
kernel-qcow2-linux-5010192d5ae589002c4453d6c6e662e5e9acae59.tar.xz
kernel-qcow2-linux-5010192d5ae589002c4453d6c6e662e5e9acae59.zip
ARM: 7583/1: decompressor: Enable unaligned memory access for v6 and above
Modern GCC can generate code which makes use of the CPU's native unaligned memory access capabilities. This is useful for the C decompressor implementations used for unpacking compressed kernels. This patch disables alignment faults and enables the v6 unaligned access model on CPUs which support these features (i.e., v6 and later), allowing full unaligned access support for C code in the decompressor. The decompressor C code must not be built to assume that unaligned access works if support for v5 or older platforms is included in the kernel. For correct code generation, C decompressor code must always use the get_unaligned and put_unaligned accessors when dealing with unaligned pointers, regardless of this patch. Signed-off-by: Dave Martin <dave.martin@linaro.org> Acked-by: Nicolas Pitre <nico@linaro.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mm')
0 files changed, 0 insertions, 0 deletions