Use futexes on OpenBSD and improve threading

This commit is contained in:
Justine Tunney 2022-07-17 19:59:49 -07:00
parent 5b11033d4d
commit 4f4889ddf7
17 changed files with 114 additions and 63 deletions

View file

@ -20,7 +20,8 @@
#include "libc/macros.internal.h"
.privileged
_futex: mov __NR_futex,%eax
_futex: mov %rcx,%r10
mov __NR_futex,%eax
clc
syscall
jnc 1f