mirror of
https://github.com/adulau/aha.git
synced 2025-01-03 22:53:18 +00:00
Blackfin: add workaround for anomaly 05000461
Returning too fast with a bad RETI can trigger false errors. Signed-off-by: Robin Getz <robin.getz@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
parent
a0cab65642
commit
0acad8dfee
1 changed files with 3 additions and 0 deletions
|
@ -594,6 +594,9 @@ asmlinkage void trap_c(struct pt_regs *fp)
|
||||||
force_sig_info(sig, &info, current);
|
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);
|
trace_buffer_restore(j);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue