summaryrefslogtreecommitdiff
path: root/nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-05-27 04:24:31 +0000
committerUlrich Drepper <drepper@redhat.com>2003-05-27 04:24:31 +0000
commit7661d9f7838cedc4e35bf86b83cd4d27e41c8e4d (patch)
tree573208501c1e83b28b9492650e2a729724d6e1f2 /nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
parent91ceedb37f9fda2460557cd61944e4d706caad3c (diff)
downloadglibc-7661d9f7838cedc4e35bf86b83cd4d27e41c8e4d.tar.gz
Update.
2003-05-26 Ulrich Drepper <drepper@redhat.com> * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: Fix typo in register name. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Use parameters correctly. Actually use requeue. Little optimization. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Store mutex address early. Handle cancellation state as 32-bit value. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise. Remove unnecessary label.
Diffstat (limited to 'nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S')
-rw-r--r--nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S10
1 files changed, 5 insertions, 5 deletions
diff --git a/nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S b/nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
index c8fd4ea129..b64953ba83 100644
--- a/nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
+++ b/nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
@@ -76,6 +76,8 @@ __pthread_cond_timedwait:
movq %rsi, 16(%rsp)
movq %rdx, %r13
+ movq %rsi, dep_mutex(%rdi)
+
/* Get internal lock. */
movl $1, %esi
LOCK
@@ -88,9 +90,7 @@ __pthread_cond_timedwait:
jne 1f
/* Unlock the mutex. */
-2: movq %rdi, %rax
- movq 16(%rsp), %rdi
- movq %rdi, dep_mutex(%rax)
+2: movq 16(%rsp), %rdi
callq __pthread_mutex_unlock_internal
testl %eax, %eax
@@ -124,7 +124,7 @@ __pthread_cond_timedwait:
jne 3f
4: callq __pthread_enable_asynccancel
- movq %rax, (%rsp)
+ movl %eax, (%rsp)
/* Get the current time. */
#ifdef __NR_clock_gettime
@@ -181,7 +181,7 @@ __pthread_cond_timedwait:
syscall
movq %rax, %r14
- movq (%rsp), %rdi
+ movl (%rsp), %edi
callq __pthread_disable_asynccancel
/* Lock. */