]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: 7508/1: opcodes: Don't define the thumb32 byteswapping macros for BE32
authorDave Martin <dave.martin@linaro.org>
Mon, 3 Sep 2012 12:49:22 +0000 (13:49 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 7 Sep 2012 19:35:14 +0000 (20:35 +0100)
commit687e73554fd1de12dd174e3fbe0a51f65ea627eb
treed7a3ce5394f7f910f0fd7a2284c4a771d8046288
parent6b3eabef2f206ed0de4c8acbcc92a4ee676ceaff
ARM: 7508/1: opcodes: Don't define the thumb32 byteswapping macros for BE32

The existing __mem_to_opcode_thumb32() is incorrect for BE32
platforms.  However, these don't support Thumb-2 kernels, so this
option is not so relevant for those platforms anyway.

This operation is complicated by the lack of unaligned memory
access support prior to ARMv6.

Rather than provide a "working" macro which will probably won't get
used (or worse, will get misused), this patch removes the macro for
BE32 kernels.  People manipulating Thumb opcodes prior to ARMv6
should almost certainly be splitting these operations into
halfwords anyway, using __opcode_thumb32_{first,second,compose}()
and the 16-bit opcode transformations.

Signed-off-by: Dave Martin <dave.martin@linaro.org>
Acked-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/opcodes.h