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)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 8 Nov 2011 18:25:04 +0000 (18:25 +0000)
commit8428e84d42179c2a00f5f6450866e70d802d1d05
treef6d316f13665e51f4cb27ea13c5e4f5dcd259690
parent71e63e748ee6f4bad482b8021386eeb74f6e47f1
ARM: 7150/1: Allow kernel unaligned accesses on ARMv6+ processors

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>
Cc: stable@vger.kernel.org
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/head.S