| To: | linux-mips@oss.sgi.com, Ralf Baechle <ralf@uni-koblenz.de> |
|---|---|
| Subject: | [PATCH] Let us die more gracefully |
| From: | Jun Sun <jsun@mvista.com> |
| Date: | Fri, 19 Jul 2002 14:18:09 -0700 |
| Sender: | owner-linux-mips@oss.sgi.com |
| User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020408 |
This patch dumps the offending code context rather than dumping the context of do_ri() function call itself. Apply to both branches. (Same is true with the previous patch) Jun diff -Nru linux/arch/mips/kernel/traps.c.orig linux/arch/mips/kernel/traps.c
--- linux/arch/mips/kernel/traps.c.orig Thu Jul 18 15:39:50 2002
+++ linux/arch/mips/kernel/traps.c Thu Jul 18 16:49:32 2002
@@ -614,8 +614,7 @@
*/
asmlinkage void do_ri(struct pt_regs *regs)
{
- if (!user_mode(regs))
- BUG();
+ die_if_kernel("no ll/sc emulation for kernel code", regs);
#ifndef CONFIG_CPU_HAS_LLSC
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH] Let Malta and its friends use common timer interrupt code, Jun Sun |
|---|---|
| Next by Date: | CoreHI interrupts on Malta, Jun Sun |
| Previous by Thread: | [PATCH] Let Malta and its friends use common timer interrupt code, Jun Sun |
| Next by Thread: | Re: [PATCH] Let us die more gracefully, Maciej W. Rozycki |
| Indexes: | [Date] [Thread] [Top] [All Lists] |