diff options
author | 2012-01-17 02:34:18 +0000 | |
---|---|---|
committer | 2012-01-17 02:34:18 +0000 | |
commit | 2aa8ea07027e21f7e3a39dbbc13d2a3af24af722 (patch) | |
tree | 5169bf71eaf80e7fda22d364a1fdfb1d5decc13b /lib/librthread/arch/sparc | |
parent | net_addrcmp() dies. found out to be a horrific function by eric (diff) | |
download | wireguard-openbsd-2aa8ea07027e21f7e3a39dbbc13d2a3af24af722.tar.xz wireguard-openbsd-2aa8ea07027e21f7e3a39dbbc13d2a3af24af722.zip |
Reimplement mutexes, condvars, and rwlocks to eliminate bugs,
particularly the "consume the signal you just sent" hang, and putting
the wait queues in userspace.
Do cancellation handling in pthread_cond_*wait(), pthread_join(),
and sem_wait().
Add __ prefix to thr{sleep,wakeup,exit,sigdivert}() syscalls; add
'abort" argument to thrsleep to close cancellation race; make
thr{sleep,wakeup} return errno values via *retval to avoid touching
userspace errno.
Diffstat (limited to 'lib/librthread/arch/sparc')
-rw-r--r-- | lib/librthread/arch/sparc/rfork_thread.S | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/librthread/arch/sparc/rfork_thread.S b/lib/librthread/arch/sparc/rfork_thread.S index fc4b4f998c7..2feac006077 100644 --- a/lib/librthread/arch/sparc/rfork_thread.S +++ b/lib/librthread/arch/sparc/rfork_thread.S @@ -1,4 +1,4 @@ -/* $OpenBSD: rfork_thread.S,v 1.2 2011/10/17 06:39:20 guenther Exp $ */ +/* $OpenBSD: rfork_thread.S,v 1.3 2012/01/17 02:34:18 guenther Exp $ */ /* * Copyright (c) 2005, Miodrag Vallat @@ -63,7 +63,7 @@ ENTRY(__tfork_thread) call %o2 /* func */ mov %o3, %o0 /* arg */ - mov SYS_threxit, %g1 + mov SYS___threxit, %g1 clr %o0 t ST_SYSCALL /* will not return */ |