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

Andi Kleen wrote:
> "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.
> 

They were *always* broken for 64-bit arguments on 32-bit machines, however.

	-hpa

  parent reply	other threads:[~2007-07-06 16:11 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
2007-07-06 15:55     ` Gautam Singaraju
2007-07-06 16:12       ` H. Peter Anvin
2007-07-06 16:11     ` H. Peter Anvin [this message]
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=468E699C.1000502@zytor.com \
    --to=hpa@zytor.com \
    --cc=andi@firstfloor.org \
    --cc=gautam.singaraju@gmail.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

all inboxes | Powered by JetHome®