Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Ralf Baechle <ralf@oss.sgi.com>
To: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>
Cc: Florian Lohoff <flo@rfc822.org>, Pete Popov <ppopov@mvista.com>,
	linux-mips@oss.sgi.com
Subject: Re: Illegal instruction - a workaround or fix ?
Date: Mon, 30 Apr 2001 17:24:19 -0300	[thread overview]
Message-ID: <20010430172419.B30998@bacchus.dhis.org> (raw)
In-Reply-To: <Pine.GSO.3.96.1010430113243.889B-100000@delta.ds2.pg.gda.pl>; from macro@ds2.pg.gda.pl on Mon, Apr 30, 2001 at 11:34:32AM +0200

On Mon, Apr 30, 2001 at 11:34:32AM +0200, Maciej W. Rozycki wrote:

> > A different solution would be to take the usual exit in sysmips via
> > the return at the end (for which the compiler generated a correct
> > epilogue) and modify the return address - This is an very ugly hack
> > and you cant tell where the compiler stores the ra on the stack.
> 
>  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.

  Ralf

  reply	other threads:[~2001-04-30 20:26 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-11 18:16 Illegal instruction - a workaround or fix ? Florian Lohoff
2001-03-12 11:21 ` Ralf Baechle
2001-03-12 13:41   ` Florian Lohoff
2001-04-20 19:05     ` Pete Popov
2001-04-20 19:18       ` Ralf Baechle
2001-04-20 19:19         ` Pete Popov
2001-04-20 19:48           ` Florian Lohoff
2001-04-20 19:58       ` Florian Lohoff
2001-04-30  9:34         ` Maciej W. Rozycki
2001-04-30 20:24           ` Ralf Baechle [this message]
2001-05-02 13:21             ` Maciej W. Rozycki

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=20010430172419.B30998@bacchus.dhis.org \
    --to=ralf@oss.sgi.com \
    --cc=flo@rfc822.org \
    --cc=linux-mips@oss.sgi.com \
    --cc=macro@ds2.pg.gda.pl \
    --cc=ppopov@mvista.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