]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ARM: probes: fix instruction fetch order with <asm/opcodes.h>
authorBen Dooks <ben.dooks@codethink.co.uk>
Fri, 8 Nov 2013 18:29:25 +0000 (18:29 +0000)
committerTaras Kondratiuk <taras@ti.com>
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 <tixy@linaro.org>
Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
[taras.kondratiuk@linaro.org: fixed Thumb instruction fetch order]
Signed-off-by: Taras Kondratiuk <taras.kondratiuk@linaro.org>
arch/arm/kernel/kprobes-common.c
arch/arm/kernel/kprobes-thumb.c
arch/arm/kernel/kprobes.c
arch/arm/kernel/probes.c