[xtensa-cvscommit] linux/arch/xtensa/kernel traps.c,1.10,1.11
Brought to you by:
zankel
|
From: <ma...@us...> - 2003-03-20 20:49:13
|
Update of /cvsroot/xtensa/linux/arch/xtensa/kernel
In directory sc8-pr-cvs1:/tmp/cvs-serv4191
Modified Files:
traps.c
Log Message:
Make illegal instruction traps visible to the OCD debugger if present;
and use the new fake-debug-EXCCAUSE macro rather than hardcode its value.
Index: traps.c
===================================================================
RCS file: /cvsroot/xtensa/linux/arch/xtensa/kernel/traps.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** traps.c 13 Feb 2003 19:35:05 -0000 1.10
--- traps.c 20 Mar 2003 20:49:08 -0000 1.11
***************
*** 361,364 ****
--- 361,366 ----
}
#endif
+ /*XTFIXME: Use signals other than SIGTRAP for certain
+ * debug causes reported in regs->reserved1 ?: */
force_sig(SIGTRAP, current);
} else {
***************
*** 506,511 ****
set_c_except_handler (XCHAL_EXCCAUSE_ILLEGAL_INSTRUCTION,
handle_illegal_instruction);
! set_c_except_handler (31, do_debug);
atomic_inc(&init_mm.mm_count); /* XXX UP? */
--- 508,515 ----
set_c_except_handler (XCHAL_EXCCAUSE_ILLEGAL_INSTRUCTION,
handle_illegal_instruction);
+ /*XTFIXME: for internal debug:*/
+ set_except_vector(EXC_CODE_USER + XCHAL_EXCCAUSE_ILLEGAL_INSTRUCTION, handle_user_debug);
! set_c_except_handler (FAKE_EXCCAUSE_DEBUG, do_debug);
atomic_inc(&init_mm.mm_count); /* XXX UP? */
|