Skip to content

Commit

Permalink
ARM: fix "bad mode in ... handler" message for undefined instructions
Browse files Browse the repository at this point in the history
The array was missing the final entry for the undefined instruction
exception handler; this commit adds it.

Cc: <stable@vger.kernel.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Russell King committed Jan 5, 2014
1 parent d2eca20 commit 29c350b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion arch/arm/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,13 @@
#include <asm/system_misc.h>
#include <asm/opcodes.h>

static const char *handler[]= { "prefetch abort", "data abort", "address exception", "interrupt" };
static const char *handler[]= {
"prefetch abort",
"data abort",
"address exception",
"interrupt",
"undefined instruction",
};

void *vectors_page;

Expand Down

0 comments on commit 29c350b

Please sign in to comment.