Yes. It is used by kgdb as initial connection and break signal trap. Sonic
-----Original Message----- From: Mike Frysinger [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 2008 6:53 PM To: [EMAIL PROTECTED] Cc: [email protected] Subject: Re: [Linux-kernel-commits] [5304] trunk/arch/blackfin/kernel/traps.c: Fix bug[#4414] Duplicated VEC_EXCPT02. On Wed, Sep 17, 2008 at 06:32, <[EMAIL PROTECTED]> wrote: > Revision 5304 Author sonicz Date 2008-09-17 05:32:04 -0500 (Wed, 17 > Sep > 2008) > > Log Message > > Fix bug[#4414] Duplicated VEC_EXCPT02. > > > Modified: trunk/arch/blackfin/kernel/traps.c (5303 => 5304) @@ -300,6 > +291,7 @@ > printk(KERN_NOTICE EXC_0x03(KERN_NOTICE)); > CHK_DEBUGGER_TRAP_MAYBE(); > break; > + /* 0x02 - User Defined */ > /* 0x04 - User Defined */ > /* 0x05 - User Defined */ > /* 0x06 - User Defined */ > @@ -317,6 +309,12 @@ > * 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; is kgdb doing something special with exception 2 ? if so, it should be documented in the comment in traps.c and entry.S. -mike _______________________________________________ Linux-kernel-commits mailing list [email protected] http://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits
