nios2: Use Linux kABI for syscall return
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 3 Feb 2020 15:00:19 +0000 (12:00 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Sat, 15 Feb 2020 00:09:12 +0000 (21:09 -0300)
commit861be5fd6601bed58b63ae0eb23097abf1ac0e1c
tree68ef62a9898692a0aef9d5c192266dcb70285f25
parentcf1e05f5990aba073864cd0bc681cd017e663351
nios2: Use Linux kABI for syscall return

It changes the nios INTERNAL_SYSCALL_RAW macro to return a negative
value instead of the 'r2' 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 with a build against nios2-linux-gnu.
sysdeps/unix/sysv/linux/nios2/sysdep.h