tile: check error properly for vDSO calls
commit7ea793f39ca1362bc1d6587d29b1e7f52eb8a9a1
authorChris Metcalf <cmetcalf@ezchip.com>
Mon, 5 Jan 2015 17:06:15 +0000 (5 12:06 -0500)
committerChris Metcalf <cmetcalf@ezchip.com>
Mon, 5 Jan 2015 17:06:15 +0000 (5 12:06 -0500)
treed652659b16f7182dad990df318c9d5aeab8b0a92
parent1dca195e1c50d69fa4f0d18e821ec68f5d286df4
tile: check error properly for vDSO calls

The tile vDSO vsyscalls were not properly setting the error value.
Conventionally, tile returns the same "non-negative success, negative
errno" value that x86 does (in r0), but it also returns "zero or positive
errno" in r1, which is what the regular syscall code checks.  This change
uses that convention for the vDSO calls as well.
ChangeLog
sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h
sysdeps/unix/sysv/linux/tile/init-first.c
sysdeps/unix/sysv/linux/tile/sysdep.h