global cleanup to use the new syscall interface
This commit is contained in:
parent
be82e122bf
commit
aa398f56fa
160 changed files with 180 additions and 238 deletions
|
|
@ -3,6 +3,5 @@
|
|||
|
||||
int __futex(volatile int *addr, int op, int val, void *ts)
|
||||
{
|
||||
return syscall4(__NR_futex, (long)addr, op, val, (long)ts);
|
||||
return syscall(SYS_futex, addr, op, val, ts);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ void __pthread_unwind_next(struct __ptcb *cb)
|
|||
__unmapself(self->map_base, self->map_size);
|
||||
}
|
||||
|
||||
__syscall_exit(0);
|
||||
syscall(SYS_exit, 0);
|
||||
}
|
||||
|
||||
static void docancel(struct pthread *self)
|
||||
|
|
|
|||
|
|
@ -14,8 +14,8 @@ int pthread_mutex_trylock(pthread_mutex_t *m)
|
|||
|
||||
if (m->_m_type >= 4) {
|
||||
if (!self->robust_list.off)
|
||||
syscall2(__NR_set_robust_list,
|
||||
(long)&self->robust_list, 3*sizeof(long));
|
||||
syscall(SYS_set_robust_list,
|
||||
&self->robust_list, 3*sizeof(long));
|
||||
self->robust_list.off = (char*)&m->_m_lock-(char *)&m->_m_next;
|
||||
self->robust_list.pending = &m->_m_next;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ static int init_main_thread()
|
|||
main_thread.errno_ptr = __errno_location();
|
||||
libc.errno_location = errno_location;
|
||||
main_thread.tid = main_thread.pid =
|
||||
syscall1(__NR_set_tid_address, (long)&main_thread.tid);
|
||||
syscall(SYS_set_tid_address, &main_thread.tid);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue