powerpc: Use Linux kABI for syscall return
commite26b8a008ae6f45f6aa2dd56f6d6ce13f181df9f
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Sun, 2 Feb 2020 23:45:58 +0000 (2 20:45 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Sat, 15 Feb 2020 00:09:12 +0000 (14 21:09 -0300)
treeb89fd96c510cc88af3ce316c62db4e14c277b816
parentcd72a13f22dbb56f56ed63e9899050cba7a286ad
powerpc: Use Linux kABI for syscall return

It changes the powerpc INTERNAL_VSYSCALL_CALL and INTERNAL_SYSCALL_NCS
to return a negative value instead of the returning the CR value in
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 powerpc64-linux-gnu, powerpc64le-linux-gnu, and
powerpc-linux-gnu-power4.
sysdeps/unix/sysv/linux/powerpc/sysdep.h