Skip to content

Commit

Permalink
Blackfin: work around anomaly 05000189
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Robin Getz authored and Mike Frysinger committed Jul 16, 2009
1 parent c70c754 commit f574a76
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/blackfin/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f574a76

Please sign in to comment.