[Top] [All Lists]

[PATCH] Let us die more gracefully

To:, Ralf Baechle <>
Subject: [PATCH] Let us die more gracefully
From: Jun Sun <>
Date: Fri, 19 Jul 2002 14:18:09 -0700
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)


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);
<Prev in Thread] Current Thread [Next in Thread>