"H. Peter Anvin" <hpa@xxxxxxxxx> 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