linux-mips
[Top] [All Lists]

Re: Illegal instruction - a workaround or fix ?

To: Ralf Baechle <ralf@oss.sgi.com>
Subject: Re: Illegal instruction - a workaround or fix ?
From: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>
Date: Wed, 2 May 2001 15:21:11 +0200 (MET DST)
Cc: Florian Lohoff <flo@rfc822.org>, Pete Popov <ppopov@mvista.com>, linux-mips@oss.sgi.com
In-reply-to: <20010430172419.B30998@bacchus.dhis.org>
Organization: Technical University of Gdansk
Sender: owner-linux-mips@oss.sgi.com
On Mon, 30 Apr 2001, Ralf Baechle wrote:

> >  It could be doable with __builtin_frame_address().  Haven't investigated
> > it further, though. 
> 
> MIPS ABI doesn't define that ra gets stored at a constant offset in
> the stackframe, so that won't work.

 Hmm, I think we check look how gcc gets __builtin_return_address() 
(specifically for levels greater than 0) and use the same way.  We don't
need to stick to the ABI in the kernel (building non-PIC we already
violate it anyway) and we can assume the code is to be built by gcc. 

-- 
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: macro@ds2.pg.gda.pl, PGP key available        +


<Prev in Thread] Current Thread [Next in Thread>
  • Re: Illegal instruction - a workaround or fix ?, Maciej W. Rozycki <=