aboutsummaryrefslogtreecommitdiff
path: root/nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2007-05-26 04:49:06 +0000
committerUlrich Drepper <drepper@redhat.com>2007-05-26 04:49:06 +0000
commit42e6c66593eb7a07afd58e70bef9aeed9f910548 (patch)
tree917aa294557cf8439bdccc82c1e45a34edea2584 /nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S
parent3d2dd6ca71fa9933e3413625d606f4b486661409 (diff)
downloadglibc-42e6c66593eb7a07afd58e70bef9aeed9f910548.tar
glibc-42e6c66593eb7a07afd58e70bef9aeed9f910548.tar.gz
glibc-42e6c66593eb7a07afd58e70bef9aeed9f910548.tar.bz2
glibc-42e6c66593eb7a07afd58e70bef9aeed9f910548.zip
* sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Add private futex
support. * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise. * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Likewise. * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise. * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise. * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
Diffstat (limited to 'nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S')
-rw-r--r--nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S5
1 files changed, 5 insertions, 0 deletions
diff --git a/nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S b/nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S
index e958d63f55..e099ede029 100644
--- a/nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S
+++ b/nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S
@@ -82,7 +82,12 @@ sem_wait:
xorq %r10, %r10
movl $SYS_futex, %eax
movq %r13, %rdi
+#if FUTEX_WAIT == 0
+ movl PRIVATE(%rdi), %esi
+#else
movl $FUTEX_WAIT, %esi
+ orl PRIVATE(%rdi), %esi
+#endif
xorl %edx, %edx
syscall
movq %rax, %r12