aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2011-06-09 23:21:11 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2011-06-09 23:55:45 +0100
commita9011580a99cd4f21546381782582bfaf9e40675 (patch)
tree741e5922d0665da0a084eb0d8200940b1f8cabeb /arch/arm/kernel
parentARM: 6955/1: cmpxchg syscall should data abort if page not write (diff)
downloadlinux-dev-a9011580a99cd4f21546381782582bfaf9e40675.tar.xz
linux-dev-a9011580a99cd4f21546381782582bfaf9e40675.zip
ARM: extend Code: line by one 16-bit quantity for Thumb instructions
Dump out the following 16-bit instruction to the faulting instruction in the Code: line. This allows Thumb-2 instructions to be properly encoded. Tested-by: Kevin Hilman <khilman@ti.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/kernel')
-rw-r--r--arch/arm/kernel/traps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/kernel/traps.c b/arch/arm/kernel/traps.c
index c5ead3c2c618..6807cb1e76dd 100644
--- a/arch/arm/kernel/traps.c
+++ b/arch/arm/kernel/traps.c
@@ -139,7 +139,7 @@ static void dump_instr(const char *lvl, struct pt_regs *regs)
fs = get_fs();
set_fs(KERNEL_DS);
- for (i = -4; i < 1; i++) {
+ for (i = -4; i < 1 + !!thumb; i++) {
unsigned int val, bad;
if (thumb)