alpha: Refactor syscall and Use Linux kABI for syscall return
commit975ace4eca4990bc1948d3a7a890de7f60e7e540
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 31 Jan 2020 19:41:25 +0000 (31 19:41 +0000)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Sat, 15 Feb 2020 00:09:12 +0000 (14 21:09 -0300)
tree404ce86f6d3b1e93a5ccdf5baaf482bcc9fe7218
parentc261718b3fda4b629ee120f48e3ee50db9c793a1
alpha: Refactor syscall and Use Linux kABI for syscall return

It highly unlikely that alpha will be ported to anything else than
Linux, so this patch moves the generic unix syscall definition to
Linux and adapt it to Linux kernel ABI.

It changes the internal_syscall* macros to return a negative value
instead of the '$19' register value on the 'err' macro argument.

The macro INTERNAL_SYSCALL_DECL is no longer required, and the
INTERNAL_SYSCALL_ERROR_P macro follows the other Linux kABIs.

Checked on alpha-linux-gnu.
sysdeps/unix/sysv/linux/alpha/ioperm.c
sysdeps/unix/sysv/linux/alpha/sysdep.h [moved from sysdeps/unix/alpha/sysdep.h with 57% similarity]