]> git.sur5r.net Git - u-boot/blobdiff - cpu/mpc85xx/traps.c
kgdb: cpu/mpc* cpu/74xx: include kgdb.h when needed
[u-boot] / cpu / mpc85xx / traps.c
index 1045cc1e7d08f4aec72a9f2c9df026fb15318f57..10108d86e3343e7d4d0f7a25c814383b7db50cfb 100644 (file)
 
 #include <common.h>
 #include <command.h>
+#include <kgdb.h>
 #include <asm/processor.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
-#if defined(CONFIG_CMD_KGDB)
-int (*debugger_exception_handler)(struct pt_regs *) = 0;
-#endif
-
 /* Returns 0 if exception not found and fixup otherwise.  */
 extern unsigned long search_exception_table(unsigned long);
 
@@ -287,6 +284,7 @@ UnknownException(struct pt_regs *regs)
               regs->nip, regs->msr, regs->trap);
        _exception(0, regs);
 }
+
 void
 ExtIntException(struct pt_regs *regs)
 {
@@ -305,14 +303,6 @@ ExtIntException(struct pt_regs *regs)
        printf(" irq IACK0@%05x=%d\n",(int)&pic->iack0,vect);
        show_regs(regs);
        print_backtrace((unsigned long *)regs->gpr[1]);
-       machinecheck_count++;
-#ifdef EXTINT_NOSKIP
-       printf("Returning back to 0x%08x\n",regs->nip);
-#else
-       regs->nip += 4; /* skip offending instruction */
-       printf("Skipping current instr, Returning to 0x%08lx\n",regs->nip);
-#endif
-
 }
 
 void