11IRX_ID(
"sbusdebug", 1, 0);
13volatile int _iop_controlled = 0;
14volatile int _iop_exception_state = 0;
21 int excode = M_IOP_GET_CAUSE_EXCODE(frame->cause);
25 _iop_exception_state = 2;
29 _iop_exception_state = 1;
35 signal_iop_exception(frame);
38 while(_iop_controlled)
48extern void soft_break(
void);
50void _controller_thread(
void)
66 param.thread = (
void *) _controller_thread;
68 param.stacksize = 512;
71 tid = CreateThread(¶m);
75extern void SBUS_dbg_init(
void);
77int _start(
int argc,
char *argv[])
84 for(i = 2; i <= 7; i++)
86 iop_dbg_set_handler(i, (IOP_ExceptionHandler *) _iop_ex_handler);
89 for(i = 9; i <= 15; i++)
91 iop_dbg_set_handler(i, (IOP_ExceptionHandler *) _iop_ex_handler);
96 if(sbus_tty_init() != 0)
98 printf(
"Failed initializing SBUS TTY system!\n");
99 return MODULE_NO_RESIDENT_END;
107 printf(
"IOP SBUS Debug installed!\n");
109 return MODULE_RESIDENT_END;
#define IOP_EXCEPTION_HDB