Gitweb: http://git.kernel.org/linus/0acad8dfee6bde7e246a95a52f864a8eee777ed8 Commit: 0acad8dfee6bde7e246a95a52f864a8eee777ed8 Parent: a0cab65642813b7990e1b4b2ab6ad92e171571f4 Author: Robin Getz <robin.getz@analog.com> AuthorDate: Mon May 11 18:55:16 2009 +0000 Committer: Mike Frysinger <vapier@gentoo.org> CommitDate: Fri Jun 12 06:11:46 2009 -0400 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> --- arch/blackfin/kernel/traps.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/arch/blackfin/kernel/traps.c b/arch/blackfin/kernel/traps.c index 0d04a47..778a756 100644 --- a/arch/blackfin/kernel/traps.c +++ b/arch/blackfin/kernel/traps.c @@ -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; } -- To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
