]> git.neil.brown.name Git - history.git/commit
[ARM PATCH] 2473/1: fix alignment trap handler for big-endian
authorLennert Buytenhek <buytenh@org.rmk.(none)>
Sat, 12 Feb 2005 19:42:47 +0000 (19:42 +0000)
committerRussell King <rmk@flint.arm.linux.org.uk>
Sat, 12 Feb 2005 19:42:47 +0000 (19:42 +0000)
commit7f6f4406588cc2ac02316053b317263ba014730e
treea1e6e7e34bae9dd2ff7a490543407c762a7e0579
parentd007c49cc9d6d0e8542320549e74bdd8bf82ccb4
[ARM PATCH] 2473/1: fix alignment trap handler for big-endian

Patch from Lennert Buytenhek

The alignment trap handler in arch/arm/mm/alignment.c performs halfword
and word accesses by translating them into byte accessing and then
combining the pieces.  However, it assumes little-endian byte ordering
in doing so, which causes unaligned accesses on big-endian platforms
to erroneously load or store byteswapped data.
This patch was pulled from an old 2.4 -ds tree, and appears to fix the
issue.  It was submitted for 2.4 at the time (ARM patch ID 1205/1206),
but rejected since big-endian ARM platforms are not supported in 2.4.

Signed-off-by: Lennert Buytenhek
Signed-off-by: Russell King
arch/arm/mm/alignment.c