Skip to content

Commit

Permalink
ARM: extend Code: line by one 16-bit quantity for Thumb instructions
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Russell King committed Jun 9, 2011
1 parent 373ce30 commit a901158
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a901158

Please sign in to comment.