mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andi Kleen <andi@firstfloor.org>
To: "H. Peter Anvin" <hpa@zytor.com>
Cc: Gautam Singaraju <gautam.singaraju@gmail.com>,
	linux-kernel@vger.kernel.org
Subject: Re: syscall macro fails upon compilation
Date: 06 Jul 2007 13:53:41 +0200	[thread overview]
Message-ID: <p73r6nl21fe.fsf@bingen.suse.de> (raw)
In-Reply-To: <468D6D1F.4040008@zytor.com>

"H. Peter Anvin" <hpa@zytor.com> writes:

> Gautam Singaraju wrote:
> > I use the _syscall0 macro.
> 
> Don't.  The _syscall*() macros have been unsupported for ages,

That's not true. I supported them on x86 before they were removed against
my objections.

> and broken for ever longer.

Well, most syscall() versions get 6 argument calls wrong
(not sure if that is finally fixed). _syscall*() didn't support
-fPIC for larger argument counts (_syscall0-2 never had a problem) 

So all alternatives short of writing your own stub had various
issues. If you needed 6 argument calls _syscall* was typically
the best alternative.

-Andi

  reply	other threads:[~2007-07-06 10:58 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-05 22:09 Gautam Singaraju
2007-07-05 22:13 ` H. Peter Anvin
2007-07-06 11:53   ` Andi Kleen [this message]
2007-07-06 15:55     ` Gautam Singaraju
2007-07-06 16:12       ` H. Peter Anvin
2007-07-06 16:11     ` H. Peter Anvin
2007-07-06 17:05       ` Andi Kleen
2007-07-06 17:19         ` H. Peter Anvin
2007-07-05 22:17 ` Davide Libenzi

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=p73r6nl21fe.fsf@bingen.suse.de \
    --to=andi@firstfloor.org \
    --cc=gautam.singaraju@gmail.com \
    --cc=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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome