[ARM] Fix alignment fault handling for ARMv6 and later CPUs
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Sun, 7 Dec 2008 09:44:55 +0000 (09:44 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 7 Dec 2008 09:44:55 +0000 (09:44 +0000)
commitbaa745a3378046ca1c5477495df6ccbec7690428
treebc3a1339a45d70b6810f2ca88a7f46e89b33b2d2
parent794baba637999b81aa40e60fae1fa91978e08808
[ARM] Fix alignment fault handling for ARMv6 and later CPUs

On ARMv6 and later CPUs, it is possible for userspace processes to
get stuck on a misaligned load or store due to the "ignore fault"
setting; unlike previous CPUs, retrying the instruction without
the 'A' bit set does not always cause the load to succeed.

We have no real option but to default to fixing up alignment faults
on these CPUs, and having the CPU fix up those misaligned accesses
which it can.

Reported-by: Wolfgang Grandegger <wg@grandegger.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/alignment.c