projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0cab65
)
Blackfin: add workaround for anomaly 05000461
author
Robin Getz
<robin.getz@analog.com>
Mon, 11 May 2009 18:55:16 +0000
(18:55 +0000)
committer
Mike Frysinger
<vapier@gentoo.org>
Fri, 12 Jun 2009 10:11:46 +0000
(06:11 -0400)
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
patch
|
blob
|
blame
|
history
diff --git
a/arch/blackfin/kernel/traps.c
b/arch/blackfin/kernel/traps.c
index 0d04a4732b1f70659f8babbdf07c1ebd664176b3..778a75655a0ce36270045846a7225ab928519d43 100644
(file)
--- 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;
}