Re: [PATCH] x86-64: re-use kernel/syscall_table_32.S in ia32/ia32entry.S

From: H. Peter Anvin
Date: Thu Apr 28 2011 - 14:18:03 EST


On 04/28/2011 05:35 AM, Arnd Bergmann wrote:
>>
>> Yep, something like that (although I have to say the __SC_3264 syntax
>> makes me want to barf.)
>
> If you have a suggestion for a better syntax, I'd hope we can do
> that in asm-generic as well. My goal is to have those files set
> an example of how to best write architecture specific versions if
> they have to be different.
>

I would just call it __SYSCALL2() -- for two versions of this syscall.
I'm not all that fond of our current "compat" notion hard-coding the
assumption of a "primary" and a "compat" ABI -- largely because that
assumption is frequently false, and it is a clear violation of the
zero-one-infinity rule.

-hpa

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/