Fix code used when private futexes are assumed.
authordrepper <drepper>
Tue, 24 Jul 2007 06:57:33 +0000 (06:57 +0000)
committerdrepper <drepper>
Tue, 24 Jul 2007 06:57:33 +0000 (06:57 +0000)
nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S
nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S

index 4f72c0f..f703eeb 100644 (file)
@@ -116,7 +116,7 @@ pthread_rwlock_timedrdlock:
 
 #ifdef __ASSUME_PRIVATE_FUTEX
        movl    $FUTEX_PRIVATE_FLAG|FUTEX_WAIT, %esi
-       xorl    PSHARED(%rdi), %esi
+       xorl    PSHARED(%r12), %esi
 #else
 # if FUTEX_WAIT == 0
        movl    PSHARED(%r12), %esi
index 8de1b1d..fc3bf3d 100644 (file)
@@ -112,7 +112,7 @@ pthread_rwlock_timedwrlock:
 
 #ifdef __ASSUME_PRIVATE_FUTEX
        movl    $FUTEX_PRIVATE_FLAG|FUTEX_WAIT, %esi
-       xorl    PSHARED(%rdi), %esi
+       xorl    PSHARED(%r12), %esi
 #else
 # if FUTEX_WAIT == 0
        movl    PSHARED(%r12), %esi