]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit9dd024ef684aca77fdaa4aee1a0930c88c482365
treebc3a1339a45d70b6810f2ca88a7f46e89b33b2d2
parentdff8ac7b1feb81ed74cea24d78fa9f24d1325a46
[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