Title: [5249] trunk/arch/blackfin/kernel/traps.c: Make sure we protect except 2 properly, and print out memory properly
Revision
5249
Author
rgetz
Date
2008-09-05 10:31:33 -0500 (Fri, 05 Sep 2008)

Log Message

Make sure we protect except 2 properly, and print out memory properly

Modified Paths

Diff

Modified: trunk/arch/blackfin/kernel/traps.c (5248 => 5249)


--- trunk/arch/blackfin/kernel/traps.c	2008-09-05 15:20:45 UTC (rev 5248)
+++ trunk/arch/blackfin/kernel/traps.c	2008-09-05 15:31:33 UTC (rev 5249)
@@ -317,6 +317,7 @@
 	 * If we got here, it is most likely that someone was trying to use a
 	 * custom exception handler, and it is not actually installed properly
 	 */
+	case VEC_EXCPT02:
 	case VEC_EXCPT04 ... VEC_EXCPT15:
 		info.si_code = ILL_ILLPARAOP;
 		sig = SIGILL;
@@ -968,7 +969,7 @@
 		if (!((unsigned long)addr & 0xF))
 			printk("\n" KERN_NOTICE "0x%p: ", addr);
 
-		if (get_instruction(&val, addr)) {
+		if (!get_instruction(&val, addr)) {
 				val = 0;
 				sprintf(buf, "????");
 		} else
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
http://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to