mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
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.
This commit is contained in:
@ -19,9 +19,11 @@
|
||||
#include <dl-vdso.h>
|
||||
#include <bits/libc-vdso.h>
|
||||
|
||||
long int (*__vdso_gettimeofday) (struct timeval *, void *) attribute_hidden;
|
||||
struct syscall_return_value (*__vdso_gettimeofday) (struct timeval *, void *)
|
||||
attribute_hidden;
|
||||
|
||||
long int (*__vdso_clock_gettime) (clockid_t, struct timespec *)
|
||||
struct syscall_return_value (*__vdso_clock_gettime) (clockid_t,
|
||||
struct timespec *)
|
||||
__attribute__ ((nocommon));
|
||||
strong_alias (__vdso_clock_gettime, __GI___vdso_clock_gettime attribute_hidden)
|
||||
|
||||
|
Reference in New Issue
Block a user