* sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S
authorUlrich Drepper <drepper@redhat.com>
Wed, 1 Aug 2007 03:41:01 +0000 (03:41 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 1 Aug 2007 03:41:01 +0000 (03:41 +0000)
(pthread_rwlock_timedrdlock): Copy futex retval to %esi rather than
%ecx.
* sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S
(pthread_rwlock_timedwrlock): Likewise.
* sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S
(__pthread_rwlock_unlock): Fix MUTEX != 0 args to __lll_*.

nptl/ChangeLog
nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S
nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S
nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S

index 2fb53b9..eda7e80 100644 (file)
@@ -1,3 +1,13 @@
+2007-07-30  Jakub Jelinek  <jakub@redhat.com>
+
+       * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S
+       (pthread_rwlock_timedrdlock): Copy futex retval to %esi rather than
+       %ecx.
+       * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S
+       (pthread_rwlock_timedwrlock): Likewise.
+       * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S
+       (__pthread_rwlock_unlock): Fix MUTEX != 0 args to __lll_*.
+
 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
 
        * sysdeps/sparc/tls.h (tcbhead_t): Add private_futex field.
index c6a584f..6bb67b7 100644 (file)
@@ -124,7 +124,7 @@ pthread_rwlock_timedrdlock:
        leal    READERS_WAKEUP(%ebp), %ebx
        movl    $SYS_futex, %eax
        ENTER_KERNEL
-       movl    %eax, %ecx
+       movl    %eax, %esi
 17:
 
        /* Reget the lock.  */
@@ -139,7 +139,7 @@ pthread_rwlock_timedrdlock:
        jnz     12f
 
 13:    subl    $1, READERS_QUEUED(%ebp)
-       cmpl    $-ETIMEDOUT, %ecx
+       cmpl    $-ETIMEDOUT, %esi
        jne     2b
 
 18:    movl    $ETIMEDOUT, %ecx
@@ -217,7 +217,7 @@ pthread_rwlock_timedrdlock:
        call    __lll_mutex_lock_wait
        jmp     13b
 
-16:    movl    $-ETIMEDOUT, %ecx
+16:    movl    $-ETIMEDOUT, %esi
        jmp     17b
 
 19:    movl    $EINVAL, %ecx
index 5e9faf9..cb5bcee 100644 (file)
@@ -122,7 +122,7 @@ pthread_rwlock_timedwrlock:
        leal    WRITERS_WAKEUP(%ebp), %ebx
        movl    $SYS_futex, %eax
        ENTER_KERNEL
-       movl    %eax, %ecx
+       movl    %eax, %esi
 17:
 
        /* Reget the lock.  */
@@ -137,7 +137,7 @@ pthread_rwlock_timedwrlock:
        jnz     12f
 
 13:    subl    $1, WRITERS_QUEUED(%ebp)
-       cmpl    $-ETIMEDOUT, %ecx
+       cmpl    $-ETIMEDOUT, %esi
        jne     2b
 
 18:    movl    $ETIMEDOUT, %ecx
@@ -210,7 +210,7 @@ pthread_rwlock_timedwrlock:
        call    __lll_mutex_lock_wait
        jmp     13b
 
-16:    movl    $-ETIMEDOUT, %ecx
+16:    movl    $-ETIMEDOUT, %esi
        jmp     17b
 
 19:    movl    $EINVAL, %ecx
index 35c40c2..ed977aa 100644 (file)
@@ -117,7 +117,7 @@ __pthread_rwlock_unlock:
 #if MUTEX == 0
        movl    %edi, %ecx
 #else
-       leal    MUTEX(%edx), %ecx
+       leal    MUTEX(%edi), %ecx
 #endif
        call    __lll_mutex_lock_wait
        jmp     2b
@@ -126,7 +126,7 @@ __pthread_rwlock_unlock:
 #if MUTEX == 0
        movl    %edi, %eax
 #else
-       leal    MUTEX(%edx), %eax
+       leal    MUTEX(%edi), %eax
 #endif
        call    __lll_mutex_unlock_wake
        jmp     4b
@@ -135,7 +135,7 @@ __pthread_rwlock_unlock:
 #if MUTEX == 0
        movl    %edi, %eax
 #else
-       leal    MUTEX(%edx), %eax
+       leal    MUTEX(%edi), %eax
 #endif
        call    __lll_mutex_unlock_wake
        jmp     8b