diff options
Diffstat (limited to 'nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S')
-rw-r--r-- | nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S b/nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S index e31d4bb..0b0ccf7 100644 --- a/nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S +++ b/nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S @@ -67,18 +67,18 @@ __pthread_rwlock_rdlock: LOCK #if MUTEX == 0 - incl (%rdi) + decl (%rdi) #else - incl MUTEX(%rdi) + decl MUTEX(%rdi) #endif jne 10f -11: addq $READERS_WAKEUP-MUTEX, %rdi +11: addq $READERS_WAKEUP, %rdi movq %r10, %rsi /* movq $FUTEX_WAIT, %rsi */ movq $SYS_futex, %rax syscall - subq $READERS_WAKEUP-MUTEX, %rdi + subq $READERS_WAKEUP, %rdi /* Reget the lock. */ movl $1, %esi |