public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: "John Breen" <jab3@hotmail.com>
To: egcs@cygnus.com
Subject: Re: Interrupt handler attribute for m68k
Date: Wed, 16 Dec 1998 10:16:00 -0000	[thread overview]
Message-ID: <19981216181640.27895.qmail@hotmail.com> (raw)

From: Jeffrey A Law <law@hurl.cygnus.com>
>  > [...]  Which one would be the best to use as a model?
>Not sure.  Probably whichever port has code which most closely 
>matches the m68k's prologue/epilogue code.

Maybe I'm being naive about this.  From what I've been told, people 
currently use a wrapper like this for interrupts on m68k:

        movem.l %d0-%d1/%a0-%a1,-(%sp)
        jsr     c_function
        movem.l (%sp)+,%d0-%d1/%a0-%a1
        rte

My plan was simply to have the prologue code save these registers also 
if it's an interrupt handler, and the epilogue restore them and do an 
rte instead of an rts.  The rest of the prologue/epilogue code would 
stay the same.

If it takes much more than that, then I'm probably in over my head.
--
John A. Breen
jab3@hotmail.com


______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

             reply	other threads:[~1998-12-16 10:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-12-16 10:16 John Breen [this message]
  -- strict thread matches above, loose matches on Subject: below --
1998-12-15 14:28 Mike Stump
1998-12-15 14:31 ` Jeffrey A Law
1998-12-15 13:43 John Breen
1998-12-15 13:58 ` Jeffrey A Law

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=19981216181640.27895.qmail@hotmail.com \
    --to=jab3@hotmail.com \
    --cc=egcs@cygnus.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).