Title: [5306] trunk/arch/blackfin/kernel/traps.c: Bug[#4414] Add comments for exception 2.
- Revision
- 5306
- Author
- sonicz
- Date
- 2008-09-17 23:44:09 -0500 (Wed, 17 Sep 2008)
Log Message
Bug[#4414] Add comments for exception 2.
Modified Paths
Diff
Modified: trunk/arch/blackfin/kernel/traps.c (5305 => 5306)
--- trunk/arch/blackfin/kernel/traps.c 2008-09-17 16:25:11 UTC (rev 5305)
+++ trunk/arch/blackfin/kernel/traps.c 2008-09-18 04:44:09 UTC (rev 5306)
@@ -291,7 +291,14 @@
printk(KERN_NOTICE EXC_0x03(KERN_NOTICE));
CHK_DEBUGGER_TRAP_MAYBE();
break;
- /* 0x02 - User Defined */
+ /* 0x02 - kernel space breakpoint handled by KGDB */
+ case VEC_EXCPT02:
+#ifdef CONFIG_KGDB
+ info.si_code = TRAP_ILLTRAP;
+ sig = SIGTRAP;
+ CHK_DEBUGGER_TRAP();
+ return;
+#endif
/* 0x04 - User Defined */
/* 0x05 - User Defined */
/* 0x06 - User Defined */
@@ -304,17 +311,9 @@
/* 0x0D - User Defined */
/* 0x0E - User Defined */
/* 0x0F - User Defined */
- /*
- * If we got here, it is most likely that someone was trying to use a
+ /* 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:
-#ifdef CONFIG_KGDB
- info.si_code = TRAP_ILLTRAP;
- sig = SIGTRAP;
- CHK_DEBUGGER_TRAP();
- return;
-#endif
case VEC_EXCPT04 ... VEC_EXCPT15:
info.si_code = ILL_ILLPARAOP;
sig = SIGILL;
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
http://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits