public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Mike Stump <mikestump@comcast.net>
To: Yulia Koval <vaalfreja@gmail.com>
Cc: gcc-patches@gcc.gnu.org, ubizjak@gmail.com, hongjiu.lu@intel.com
Subject: Re: [PATCH] x86 interrupt attribute
Date: Tue, 29 Sep 2015 19:49:00 -0000	[thread overview]
Message-ID: <2AB9494F-91EC-4CF6-945B-0CB03A583513@comcast.net> (raw)
In-Reply-To: <CAE0nxxi-T8da1=dXkHem2m6d_2RramotAU3HY=UqFkmT0kW=RQ@mail.gmail.com>

To be feature complete, it would be nice to have two styles of interrupt functions, one that returns with iret, and one that returns with ret.  The point is that the user might want to call functions from a interrupt handler and not save and restore all call clobbered registers.  By allowing a ret style interrupt handler, calls to a ret style interrupt routine can avoid saving and restoring all call clobbered registers.

Oh, and I wish that all the port independent code for interrupt functions was shared across all ports, as redoing all this code for each port is silly (sad).  And example of this would be the sibcall code, the fact that all call saved registers need to be saved is another.  The EPILOGUE_USES or the gen_rtx_USE is yet another.  Type checking the return type to ensure the return type is void, likely another.

One last comment, most folks use EPILOGUE_USES and mark up the registers as used.  You don’t.  I’m not sure if both ways work equally well, or if there is a reason to prefer one over the other.  Maybe someone could comment on this, as in my port I use EPILOGUE_USES and it seems to work just fine.

On Sep 29, 2015, at 6:49 AM, Yulia Koval <vaalfreja@gmail.com> wrote:
> +  /* Always need to save SSE registrers in interrupt handler.  */

Spelling registrers -> registers.

Not in your code, but I noticed it:

>    /* All pointer bounds argumntas are handled separately here.  */

Spelling argumntas -> arguments?

  reply	other threads:[~2015-09-29 18:50 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-29 14:21 Yulia Koval
2015-09-29 19:49 ` Mike Stump [this message]
2015-09-29 20:30   ` H.J. Lu
2015-09-29 21:49     ` H.J. Lu
2015-09-29 22:10       ` Mike Stump
2015-09-29 22:11         ` Mike Stump
2015-09-29 22:13         ` H.J. Lu
2015-09-30  0:47           ` Mike Stump
2015-09-30  1:34             ` H.J. Lu
2015-09-30  5:50               ` H.J. Lu
2015-09-30 12:41                 ` Yulia Koval
2015-09-30 13:02                   ` H.J. Lu
2015-09-30 18:48                     ` Yulia Koval
2015-09-30 19:08                   ` H.J. Lu
2015-09-30 21:31                     ` Yulia Koval
2015-09-30 21:39                       ` H.J. Lu
2015-10-01  0:24                       ` H.J. Lu
2015-10-01 12:34                         ` Yulia Koval
2015-10-01 15:59                         ` Uros Bizjak
2015-10-01 16:08                           ` H.J. Lu
2015-10-01 16:18                             ` Uros Bizjak
2015-10-02 12:51                               ` Yulia Koval
2015-10-02 15:45                                 ` Uros Bizjak
2015-10-02 17:48                                   ` Yulia Koval
2015-10-04  5:24                                     ` Yulia Koval
2015-10-04 10:29                                       ` Uros Bizjak
2015-10-04 18:15                                         ` H.J. Lu
2015-10-04 20:01                                           ` Uros Bizjak
2015-10-04 20:51                                             ` H.J. Lu
2015-10-04 21:07                                               ` Uros Bizjak
2015-10-04 23:17                                                 ` H.J. Lu
2015-10-05  9:29                                                   ` Uros Bizjak
2015-10-13 12:18                                                     ` Yulia Koval
2015-10-20 13:25                                                       ` Yulia Koval
2015-10-23 13:13                                                         ` Yulia Koval
2015-11-06 14:08                                                           ` Yulia Koval
2015-11-06 15:31                                                             ` Uros Bizjak
2015-11-06 22:19                                                               ` H.J. Lu
2015-11-07  4:50                                                                 ` Jeff Law
2015-10-05  9:00                                           ` Mike Stump
2015-09-29 22:10     ` Mike Stump
2015-09-29 23:08       ` H.J. Lu
2015-09-29 23:54         ` H.J. Lu
2015-09-30  2:45           ` Mike Stump
2015-09-30  5:21             ` H.J. Lu

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=2AB9494F-91EC-4CF6-945B-0CB03A583513@comcast.net \
    --to=mikestump@comcast.net \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=hongjiu.lu@intel.com \
    --cc=ubizjak@gmail.com \
    --cc=vaalfreja@gmail.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).