From: Scott Wood Date: Thu, 20 Aug 2009 22:45:00 +0000 (-0500) Subject: ppc/85xx: Remove some bogus code from external interrupt handler. X-Git-Tag: v2010.09-rc1~28^2~7^2~42^2~90 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=f761439418f589e16804061edeb848c8ae497091;p=karo-tx-uboot.git ppc/85xx: Remove some bogus code from external interrupt handler. Skipping the interrupted instruction will accomplish nothing other than turning a spurious interrupt into a crash. External interrupts are not machine checks, so don't count them as such. Signed-off-by: Scott Wood --- diff --git a/cpu/mpc85xx/traps.c b/cpu/mpc85xx/traps.c index 1045cc1e7d..9d16b9b55e 100644 --- a/cpu/mpc85xx/traps.c +++ b/cpu/mpc85xx/traps.c @@ -287,6 +287,7 @@ UnknownException(struct pt_regs *regs) regs->nip, regs->msr, regs->trap); _exception(0, regs); } + void ExtIntException(struct pt_regs *regs) { @@ -305,14 +306,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