All of lore.kernel.org
 help / color / mirror / Atom feed
From: "H. Peter Anvin" <hpa@zytor.com>
To: linux-kernel@vger.kernel.org
Subject: Re: [PATCH -mm] i386 syscall opcode reordering (pipelining)
Date: Tue, 13 Jun 2006 15:21:27 -0700 (PDT)	[thread overview]
Message-ID: <e6ndp7$58a$1@terminus.zytor.com> (raw)
In-Reply-To: e6nd68$4sq$1@terminus.zytor.com

Followup to:  <e6nd68$4sq$1@terminus.zytor.com>
By author:    "H. Peter Anvin" <hpa@zytor.com>
In newsgroup: linux.dev.kernel
> 
> Probably not.  The _syscallN() macros are broken for the general case
> on any 32-bit architecture, since they can't handle multiregister
> arguments.
> 
> Similarly, a general syscall() function is broken (in the sense that
> one would have to have syscall-specific code to mangle the arguments)
> on *some*, but not all, 32-bit architectures, since some architectures
> have alignment constraints on multiregister arguments, and the syscall
> number argument throws off that alignment.
> 

I should probably add that it is possible to write _syscallN() macros
that handle multiregister arguments correctly; just the current ones
aren't done correctly.  The complexity gets pretty staggering for the
higher argument counts, though, as for each _syscallN() you have to
support 2^N possible cases, just to deal with 32- and 64-bit arguments
(which is all we support at this point, so it'd be okay.)

	-hpa

  parent reply	other threads:[~2006-06-13 22:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-13 19:54 [PATCH -mm] i386 syscall opcode reordering (pipelining) Andreas Mohr
2006-06-13 20:09 ` Arjan van de Ven
2006-06-13 22:11   ` H. Peter Anvin
2006-06-13 22:15     ` David Woodhouse
2006-06-13 22:21     ` H. Peter Anvin [this message]
2006-06-14 19:28   ` Andreas Mohr

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='e6ndp7$58a$1@terminus.zytor.com' \
    --to=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.