From: Keith Owens <kaos@melbourne.sgi.com>
To: Ralf Baechle <ralf@oss.sgi.com>
Cc: Florian Lohoff <flo@rfc822.org>,
Raoul Borenius <borenius@shuttle.de>,
linux-mips@oss.sgi.com
Subject: ksymoops changes for mips (was Kernel crash on boot with current cvs)
Date: Wed, 13 Jun 2001 22:19:14 +1000 [thread overview]
Message-ID: <8465.992434754@ocs4.ocs-net> (raw)
In-Reply-To: Your message of "Wed, 13 Jun 2001 14:05:51 +0200." <20010613140550.B31221@bacchus.dhis.org>
On Wed, 13 Jun 2001 14:05:51 +0200,
Ralf Baechle <ralf@oss.sgi.com> wrote:
>On Wed, Jun 13, 2001 at 09:34:18PM +1000, Keith Owens wrote:
>> Looks like I need to add a new option to ksymoops. -T <bits>, truncate
>> all addresses to this bit size. Added to my list for the next ksymoops
>> release.
>
>That can be done automatically. For 32-bit ELF files mips*-linux binutils
>dump some of the addresses as 32-bit addresses, some as sign-extended (!)
>64-bit addresses. So ksymops should just sign extend any 32-bit addresses
>to 64-bit and then work on full lenght addresses.
Some utilities extend with leading 0, some with leading 1, some with
special values (alpha). It is safer to truncate everything to the
specified width instead of guessing what the extension value is.
>Is ksymoops able to handle 64-bit addresses when running on a 32-bit host?
>That is a common case for many people when decoding their MIPS oopses.
Yes and no. The framework is there to handle 32/64 splits, sparc
already uses it. mips does not currently use the framework because the
oops report does not identify the machine type 32/64, MSB/LSB. We
discussed this in January and I asked for a small change to mips64 oops
output (below), was that ever done?
------
From: Keith Owens <kaos@ocs.com.au>
To: Ralf Baechle <ralf@uni-koblenz.de>
Subject: Re: ksymoops on origin
Date: Sat, 06 Jan 2001 18:21:35 +1100
ksymoops is designed to run on any build arch and debug an oops report
from any other target arch, as long as binutils supports the target
arch. The presence or absence of __MIPSEL__ or __MIPSEB__ on the build
system says nothing about the type of the failing target, ksymoops
relies on text in the oops report to determine special cases like 32
bit userland and 64 bit kernel.
The best option is for a mips64 kernel to indicate that it is 64 bit
and its endianess. Instead of printing
"epc : %016lx\n"
print
"epc : %016lx (64 "
#ifdef __MIPSEL__
"LSB"
#else
"MSB"
#endif
")\n"
If you make that change to arch/mips64/mm/andes.c,
arch/mips64/mm/r4xx0.c and any other places that print epc on mips64
then I will change ksymoops to look for (64 [LM]SB) on the epc line and
decode accordingly.
While we are on the topic of 32 bit userland and 64 bit kernel, how
does mips64 handle modules? modutils 2.4.0 has no support for mips64,
do you have any code? Also I assume that you will want the same
ability as sparc, to compile modutils as a 32 bit program which can
handle both 32 and 64 bit modules.
next prev parent reply other threads:[~2001-06-13 12:19 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-06-10 22:03 Kernel crash on boot with current cvs (todays) Florian Lohoff
2001-06-11 3:53 ` Keith Owens
2001-06-11 19:12 ` Florian Lohoff
2001-06-12 1:01 ` Maciej W. Rozycki
2001-06-12 1:01 ` Keith M Wesolowski
2001-06-12 1:22 ` Maciej W. Rozycki
2001-06-12 2:05 ` Keith Owens
2001-06-11 4:42 ` Ralf Baechle
2001-06-11 14:50 ` Raoul Borenius
2001-06-12 10:09 ` Florian Lohoff
2001-06-12 11:53 ` Ralf Baechle
2001-06-12 16:37 ` H . J . Lu
[not found] ` <20010613100602.A17124@bunny.shuttle.de>
2001-06-13 10:56 ` Florian Lohoff
2001-06-13 11:34 ` Keith Owens
2001-06-13 12:05 ` Ralf Baechle
2001-06-13 12:19 ` Keith Owens [this message]
2001-06-16 9:22 ` ksymoops changes for mips (was Kernel crash on boot with current cvs) Ralf Baechle
2001-06-27 2:21 ` ksymoops changes for mips Keith Owens
2001-06-28 14:32 ` Thiemo Seufer
2001-07-31 3:57 ` Keith Owens
2001-07-31 4:30 ` Keith Owens
2001-08-03 6:10 ` Keith Owens
2001-08-03 10:07 ` Thiemo Seufer
2001-06-13 13:44 ` Kernel crash on boot with current cvs (todays) Maciej W. Rozycki
2001-06-13 14:07 ` Keith Owens
2001-06-13 15:08 ` Maciej W. Rozycki
2001-06-16 9:24 ` Ralf Baechle
2001-06-13 11:37 ` Raoul Borenius
2001-06-13 11:46 ` Keith Owens
2001-06-13 11:46 ` Keith Owens
2001-06-13 13:16 ` Raoul Borenius
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=8465.992434754@ocs4.ocs-net \
--to=kaos@melbourne.sgi.com \
--cc=borenius@shuttle.de \
--cc=flo@rfc822.org \
--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