All of lore.kernel.org
 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 10:19:01 -0700	[thread overview]
Message-ID: <468E7985.7050502@zytor.com> (raw)
In-Reply-To: <20070706170512.GA8174@one.firstfloor.org>

Andi Kleen wrote:
>> They were *always* broken for 64-bit arguments on 32-bit machines, however.
> 
> Well syscall() doesn't support that at all (unless you split by hand)
> 

On i386 it just happens to work, because the calling convention is
equivalent.  On some other 32-bit platforms it works that way as well;
on others, it fails.

To do it right you need a proper assembly stub generator.

	-hpa


  reply	other threads:[~2007-07-06 17:19 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-05 22:09 syscall macro fails upon compilation 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
2007-07-06 17:05       ` Andi Kleen
2007-07-06 17:19         ` H. Peter Anvin [this message]
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=468E7985.7050502@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 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.