diff options
Diffstat (limited to 'cpu/mpc824x/traps.c')
| -rw-r--r-- | cpu/mpc824x/traps.c | 15 | 
1 files changed, 15 insertions, 0 deletions
| diff --git a/cpu/mpc824x/traps.c b/cpu/mpc824x/traps.c index 11f51c250..956244f38 100644 --- a/cpu/mpc824x/traps.c +++ b/cpu/mpc824x/traps.c @@ -176,6 +176,21 @@ UnknownException(struct pt_regs *regs)  	_exception(0, regs);  } +#if (CONFIG_COMMANDS & CFG_CMD_BEDBUG) +extern void do_bedbug_breakpoint(struct pt_regs *); +#endif + +void +DebugException(struct pt_regs *regs) +{ + +  printf("Debugger trap at @ %lx\n", regs->nip ); +  show_regs(regs); +#if (CONFIG_COMMANDS & CFG_CMD_BEDBUG) +  do_bedbug_breakpoint( regs ); +#endif +} +  /* Probe an address by reading.  If not present, return -1, otherwise   * return 0.   */ |