ARM: probes: fix instruction fetch order with <asm/opcodes.h>
authorBen Dooks <[email protected]>
Fri, 8 Nov 2013 18:29:25 +0000 (18:29 +0000)
committerTaras Kondratiuk <[email protected]>
Tue, 1 Apr 2014 13:45:19 +0000 (16:45 +0300)
commit888be25402021a425da3e85e2d5a954d7509286e
tree5f6a556112fe3098370272c57e482501956d8f6c
parentc7edc9e326d53ca5ef9bed82de0740c6b107d55b
ARM: probes: fix instruction fetch order with <asm/opcodes.h>

If we are running BE8, the data and instruction endianness do not
match, so use <asm/opcodes.h> to correctly translate memory accesses
into ARM instructions.

Acked-by: Jon Medhurst <[email protected]>
Signed-off-by: Ben Dooks <[email protected]>
[[email protected]: fixed Thumb instruction fetch order]
Signed-off-by: Taras Kondratiuk <[email protected]>
arch/arm/kernel/kprobes-common.c
arch/arm/kernel/kprobes-thumb.c
arch/arm/kernel/kprobes.c
arch/arm/kernel/probes.c