From: Jun Sun <jsun@mvista.com>
To: "H. J. Lu" <hjl@lucon.org>
Cc: linux-mips@oss.sgi.com
Subject: Re: Malta bus error
Date: Thu, 18 Jul 2002 18:05:53 -0700 [thread overview]
Message-ID: <3D3765F1.6050606@mvista.com> (raw)
In-Reply-To: 20020718180759.A2091@lucon.org
H. J. Lu wrote:
> On Thu, Jul 18, 2002 at 05:20:28PM -0700, Jun Sun wrote:
>
>>I got the following bus error on Malta. Does anybody know what causes the
>>fault? Is there anyway to disable the error? Or we should install a malta
>>bus_error_handler() to discard this kind of error?
>>
>>Apparently the error has something to do with the code layout as it only
>>happens when I start to modify an unrelated function( do_ri()).
>>
>>I am using the latest linux_2_4 branch from oss.sgi.com CVS tree.
>>
>
>
> I got zero problems with 2.4 kernel on oss as of Jul 11 08:18.
>
Me neither, until I made the following change. I of course use my own config
file.
Using Malta's own BE handler to ignore bus error seems to fix the problem,
although I am not sure if it is the right fix.
Jun
--- arch/mips/kernel/traps.c.orig Thu Jul 18 15:39:50 2002
+++ 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
Jun
next prev parent reply other threads:[~2002-07-19 1:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-19 0:20 Malta bus error Jun Sun
2002-07-19 1:07 ` H. J. Lu
2002-07-19 1:05 ` Jun Sun [this message]
2002-07-19 6:39 ` Carsten Langgaard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3D3765F1.6050606@mvista.com \
--to=jsun@mvista.com \
--cc=hjl@lucon.org \
--cc=linux-mips@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.