Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f574a76a authored by Robin Getz's avatar Robin Getz Committed by Mike Frysinger
Browse files

Blackfin: work around anomaly 05000189



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: default avatarRobin Getz <robin.getz@analog.com>
Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
parent c70c754f
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -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)) ||
	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;
		fp->pc = SAFE_USER_INSTRUCTION;


 traps_done:
 traps_done: