ARM: 7150/1: Allow kernel unaligned accesses on ARMv6+ processors
authorCatalin Marinas <catalin.marinas@arm.com>
Mon, 7 Nov 2011 17:05:53 +0000 (18:05 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 26 Nov 2011 17:08:33 +0000 (09:08 -0800)
commit92fd7a89888fc223337fe5fd5dc83b79e1174340
tree001842356a570e58e3d347c680fd9ade313deec6
parent57a3b9c22b828434d282b6f7a29d39a65d964b49
ARM: 7150/1: Allow kernel unaligned accesses on ARMv6+ processors

commit 8428e84d42179c2a00f5f6450866e70d802d1d05 upstream.

Recent gcc versions generate unaligned accesses by default on ARMv6 and
later processors. This patch ensures that the SCTLR.A bit is always
cleared on such processors to avoid kernel traping before
alignment_init() is called.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Tested-by: John Linn <John.Linn@xilinx.com>
Acked-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/arm/kernel/head.S