Blackfin: work around anomaly 05000189
authorRobin Getz <robin.getz@analog.com>
Thu, 9 Jul 2009 15:11:52 +0000 (15:11 +0000)
committerMike Frysinger <vapier@gentoo.org>
Thu, 16 Jul 2009 05:52:48 +0000 (01:52 -0400)
Similar to anomaly 05000281 but not as bad, we cannot return to the
instruction causing a fault otherwise we'll trigger a second false
exception.  The system can still recover, but it isn't correct.

Signed-off-by: Robin Getz <robin.getz@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
arch/blackfin/kernel/traps.c

index 9efac0f2e2ce183e3cfffc618ceb3054442e4b88..bf2b2d1f8ae5f35ecd64b68abbbc324f444fa421 100644 (file)
@@ -621,7 +621,8 @@ asmlinkage void trap_c(struct pt_regs *fp)
        }
 
        if ((ANOMALY_05000461 && trapnr == VEC_HWERR && !access_ok(VERIFY_READ, fp->pc, 8)) ||
-               (ANOMALY_05000281 && trapnr == VEC_HWERR))
+           (ANOMALY_05000281 && trapnr == VEC_HWERR) ||
+           (ANOMALY_05000189 && (trapnr == VEC_CPLB_I_VL || trapnr == VEC_CPLB_VL)))
                fp->pc = SAFE_USER_INSTRUCTION;
 
  traps_done: