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

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

Blackfin: add workaround for anomaly 05000461



Returning too fast with a bad RETI can trigger false errors.

Signed-off-by: default avatarRobin Getz <robin.getz@analog.com>
Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
parent a0cab656
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -594,6 +594,9 @@ asmlinkage void trap_c(struct pt_regs *fp)
		force_sig_info(sig, &info, current);
	}

	if (ANOMALY_05000461 && trapnr == VEC_HWERR && !access_ok(VERIFY_READ, fp->pc, 8))
		fp->pc = SAFE_USER_INSTRUCTION;

	trace_buffer_restore(j);
	return;
}