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

I am surprised that syscalls have been removed. Anyway, I plan to
write a device node with read and write functions just so that I can
call a method from a user space. What are my other choices?
--
Gautam

On 06 Jul 2007 13:53:41 +0200, Andi Kleen <andi@firstfloor.org> 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.
>
> -Andi
>


-- 
---
Gautam

  reply	other threads:[~2007-07-06 15:55 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 [this message]
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=f8b2ccd40707060855o33f1db48v2139ed909e774066@mail.gmail.com \
    --to=gautam.singaraju@gmail.com \
    --cc=andi@firstfloor.org \
    --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