Browse Source

ARM: fix "bad mode in ... handler" message for undefined instructions

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>
Russell King 11 years ago
parent
commit
29c350bf28
1 changed files with 7 additions and 1 deletions
  1. 7 1
      arch/arm/kernel/traps.c

+ 7 - 1
arch/arm/kernel/traps.c

@@ -36,7 +36,13 @@
 #include <asm/system_misc.h>
 #include <asm/system_misc.h>
 #include <asm/opcodes.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;
 void *vectors_page;