[Top] [All Lists]

Re: ksymoops changes for mips (was Kernel crash on boot with current cvs

To: Keith Owens <>
Subject: Re: ksymoops changes for mips (was Kernel crash on boot with current cvs)
From: Ralf Baechle <>
Date: Sat, 16 Jun 2001 11:22:20 +0200
Cc: Florian Lohoff <>, Raoul Borenius <>,
In-reply-to: <8465.992434754@ocs4.ocs-net>; from on Wed, Jun 13, 2001 at 10:19:14PM +1000
References: <> <8465.992434754@ocs4.ocs-net>
User-agent: Mutt/1.2.5i
On Wed, Jun 13, 2001 at 10:19:14PM +1000, Keith Owens wrote:

> >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.

That's a processor specific thing.  In case of MIPS only signed extension
is correct.  Some older binutils did unsigned extension and that's plain

> >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?

Nothing - ``Guilty as charged.  Filed in my "to do when I have time" folder,
which overflowed about 3 years ago :(.''


<Prev in Thread] Current Thread [Next in Thread>