提交 0acad8df 编写于 作者: R Robin Getz 提交者: Mike Frysinger

Blackfin: add workaround for anomaly 05000461

Returning too fast with a bad RETI can trigger false errors.
Signed-off-by: NRobin Getz <robin.getz@analog.com>
Signed-off-by: NMike Frysinger <vapier@gentoo.org>
上级 a0cab656
...@@ -594,6 +594,9 @@ asmlinkage void trap_c(struct pt_regs *fp) ...@@ -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;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册