| To: | "Maciej W. Rozycki" <macro@ds2.pg.gda.pl> |
|---|---|
| Subject: | Re: [PATCH] Let us die more gracefully |
| From: | Jun Sun <jsun@mvista.com> |
| Date: | Mon, 22 Jul 2002 09:40:18 -0700 |
| Cc: | linux-mips@oss.sgi.com, Ralf Baechle <ralf@uni-koblenz.de> |
| References: | <Pine.GSO.3.96.1020722154730.2373E-100000@delta.ds2.pg.gda.pl> |
| Sender: | owner-linux-mips@oss.sgi.com |
| User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020408 |
Maciej W. Rozycki wrote: On Fri, 19 Jul 2002, Jun Sun wrote:This patch dumps the offending code context rather than dumping the context of do_ri() function call itself.The message is misleading -- the reason may be any illegal opcode. That is true. Here is the revised one. 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("Reserved instruction in kernel code", regs);
#ifndef CONFIG_CPU_HAS_LLSC
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [uHOWTO] Booting a DECstation via MOP, Maciej W. Rozycki |
|---|---|
| Next by Date: | Re: sys32_execve fix, Maciej W. Rozycki |
| Previous by Thread: | Re: [PATCH] Let us die more gracefully, Maciej W. Rozycki |
| Next by Thread: | CoreHI interrupts on Malta, Jun Sun |
| Indexes: | [Date] [Thread] [Top] [All Lists] |