From: Jun Sun <jsun@mvista.com>
To: Ralf Baechle <ralf@oss.sgi.com>
Cc: linux-mips@oss.sgi.com, linux-mips@fnet.fr
Subject: Re: trap handler for unaligned memory read/write
Date: Fri, 15 Sep 2000 17:02:50 -0700 [thread overview]
Message-ID: <39C2B8AA.9B873EF7@mvista.com> (raw)
In-Reply-To: 20000916012853.A16047@bacchus.dhis.org
Ralf Baechle wrote:
> > For short-term solutions, we can have trap handler that supports the
> > unaligned read/write. Does anybody know if there is such a trap handler
> > for MIPS?
>
> It's right there in your kernel ...
>
Cool! I found it.
> You _really_ _really_ want to avoid relying on the unaligned trap handler.
> Performancewise that's equivalent to a swapping on a floppy disk on the
> Mars over NFS via avian carriers ...
>
> However unaligned accesses will result in an address error exception not
> bus error therefore I suspect you've got another problem.
>
I got the error when I use gdb to debug kernel. I suppose the gdb stub
intercepted the error and report it as BUS error. We should make
gdb-stub a little smarter ...
Jun
prev parent reply other threads:[~2000-09-16 0:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-09-15 21:09 trap handler for unaligned memory read/write Jun Sun
2000-09-15 22:31 ` Jun Sun
2000-09-15 23:28 ` Ralf Baechle
2000-09-16 0:02 ` Jun Sun [this message]
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=39C2B8AA.9B873EF7@mvista.com \
--to=jsun@mvista.com \
--cc=linux-mips@fnet.fr \
--cc=linux-mips@oss.sgi.com \
--cc=ralf@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox