提交 27707d3e 编写于 作者: S Sonic Zhang 提交者: Bryan Wu

Blackfin arch: Fix bug - kernel build with config kernel debugging with remote gdb fails

 Add some comment and fix duplicated VEC_EXCPT02
Signed-off-by: NSonic Zhang <sonic.zhang@analog.com>
Signed-off-by: NBryan Wu <cooloney@kernel.org>
上级 5e9e7687
...@@ -284,15 +284,6 @@ asmlinkage void trap_c(struct pt_regs *fp) ...@@ -284,15 +284,6 @@ asmlinkage void trap_c(struct pt_regs *fp)
return; return;
else else
break; break;
#ifdef CONFIG_KGDB
case VEC_EXCPT02 : /* gdb connection */
info.si_code = TRAP_ILLTRAP;
sig = SIGTRAP;
CHK_DEBUGGER_TRAP();
return;
#else
/* 0x02 - User Defined, Caught by default */
#endif
/* 0x03 - User Defined, userspace stack overflow */ /* 0x03 - User Defined, userspace stack overflow */
case VEC_EXCPT03: case VEC_EXCPT03:
info.si_code = SEGV_STACKFLOW; info.si_code = SEGV_STACKFLOW;
...@@ -300,6 +291,14 @@ asmlinkage void trap_c(struct pt_regs *fp) ...@@ -300,6 +291,14 @@ asmlinkage void trap_c(struct pt_regs *fp)
printk(KERN_NOTICE EXC_0x03(KERN_NOTICE)); printk(KERN_NOTICE EXC_0x03(KERN_NOTICE));
CHK_DEBUGGER_TRAP_MAYBE(); CHK_DEBUGGER_TRAP_MAYBE();
break; break;
/* 0x02 - KGDB initial connection and break signal trap */
case VEC_EXCPT02:
#ifdef CONFIG_KGDB
info.si_code = TRAP_ILLTRAP;
sig = SIGTRAP;
CHK_DEBUGGER_TRAP();
return;
#endif
/* 0x04 - User Defined */ /* 0x04 - User Defined */
/* 0x05 - User Defined */ /* 0x05 - User Defined */
/* 0x06 - User Defined */ /* 0x06 - User Defined */
...@@ -312,11 +311,9 @@ asmlinkage void trap_c(struct pt_regs *fp) ...@@ -312,11 +311,9 @@ asmlinkage void trap_c(struct pt_regs *fp)
/* 0x0D - User Defined */ /* 0x0D - User Defined */
/* 0x0E - User Defined */ /* 0x0E - User Defined */
/* 0x0F - 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 * custom exception handler, and it is not actually installed properly
*/ */
case VEC_EXCPT02:
case VEC_EXCPT04 ... VEC_EXCPT15: case VEC_EXCPT04 ... VEC_EXCPT15:
info.si_code = ILL_ILLPARAOP; info.si_code = ILL_ILLPARAOP;
sig = SIGILL; sig = SIGILL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册