diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-03-18 22:20:54 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-03-18 22:20:54 +0000 |
commit | ee2af3e835beed665579befac90e4621fb92ba39 (patch) | |
tree | 9594e5e93afaffe6d887af6c47cc6d5daf3b8c59 /nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S | |
parent | 8cfb7315ea11d715d6697b8aa07166eef1e220fc (diff) | |
download | glibc-ee2af3e835beed665579befac90e4621fb92ba39.tar.gz glibc-ee2af3e835beed665579befac90e4621fb92ba39.tar.xz glibc-ee2af3e835beed665579befac90e4621fb92ba39.zip |
Reorder struct passed to cleanup handler to eliminate one more instruction.
Diffstat (limited to 'nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S')
-rw-r--r-- | nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S b/nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S index 151018ce23..133e4fee7d 100644 --- a/nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S +++ b/nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S @@ -95,8 +95,8 @@ __pthread_cond_timedwait: movl %edi, 20(%esp) movl %edx, 24(%esp) /* Prepare structure passed to cancellation handler. */ + movl %ecx, (%esp) movl %ebx, 4(%esp) - movl %ecx, 8(%esp) /* Unlock. */ 8: LOCK @@ -107,7 +107,7 @@ __pthread_cond_timedwait: #endif jne 3f -4: movl %esp, %eax +4: leal 8(%esp), %eax call __pthread_enable_asynccancel_2 /* Get the current time. */ @@ -168,7 +168,7 @@ __pthread_cond_timedwait: subl $wakeup_seq, %ebx movl %eax, %esi - movl (%esp), %eax + movl 8(%esp), %eax call __pthread_disable_asynccancel /* Lock. */ @@ -224,10 +224,9 @@ __pthread_cond_timedwait: 11: movl 20+CLEANUP_PREV(%esp), %edx movl %edx, %gs:CLEANUP - /* Trick ahead: 8(%esp) contains the address of the mutex. */ - addl $8, %esp + /* Trick ahead: (%esp) contains the address of the mutex. */ call __pthread_mutex_lock_internal - addl $36, %esp + addl $44, %esp /* We return the result of the mutex_lock operation if it failed. */ testl %eax, %eax |