[PATCH] Add SYSCALL_LONG/SYSCALL_ULONG to pass long to syscall [BZ #25810]
Florian Weimer
fw@deneb.enyo.de
Sat Apr 11 10:01:08 GMT 2020
* H. J. Lu via Libc-alpha:
> For inline syscalls, SYSCALL_LONG and SYSCALL_ULONG are introduced as
> wrappers for long and unsigned long arguments.
Do the arguments have the correct types? Then I think you can do the
adjustment in the guts of INLINE_SYSCALL machinery, and we do not have
to remember to annotate each and every call site with the new macros.
Changes to sysdeps/unix/make-syscalls.sh and syscalls.list appear
unavoidable, but I think tget should be made to the global Linux
version, not the x32 variant, so that other targets with the same
issue can benefit from them. (I have not reviewed the
make-syscalls.sh changes.)
The core problem is that the psABI has a different calling convention
than the syscall interface, right? This looks like a cautionary tale
that one should not do this.
More information about the Libc-alpha
mailing list