mirror of
https://sourceware.org/git/glibc.git
synced 2025-10-28 23:34:53 +03:00
Use LP_OP(cmp) and RCX_LP on dep_mutex pointer
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2012-05-15 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
* sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Use
|
||||||
|
LP_OP(cmp) and RCX_LP on dep_mutex pointer.
|
||||||
|
|
||||||
2012-05-15 H.J. Lu <hongjiu.lu@intel.com>
|
2012-05-15 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
* sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Use LP_OP(op)
|
* sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Use LP_OP(op)
|
||||||
|
|||||||
@@ -55,14 +55,14 @@ __pthread_cond_signal:
|
|||||||
addl $1, (%rdi)
|
addl $1, (%rdi)
|
||||||
|
|
||||||
/* Wake up one thread. */
|
/* Wake up one thread. */
|
||||||
cmpq $-1, dep_mutex(%r8)
|
LP_OP(cmp) $-1, dep_mutex(%r8)
|
||||||
movl $FUTEX_WAKE_OP, %esi
|
movl $FUTEX_WAKE_OP, %esi
|
||||||
movl $1, %edx
|
movl $1, %edx
|
||||||
movl $SYS_futex, %eax
|
movl $SYS_futex, %eax
|
||||||
je 8f
|
je 8f
|
||||||
|
|
||||||
/* Get the address of the mutex used. */
|
/* Get the address of the mutex used. */
|
||||||
movq dep_mutex(%r8), %rcx
|
mov dep_mutex(%r8), %RCX_LP
|
||||||
movl MUTEX_KIND(%rcx), %r11d
|
movl MUTEX_KIND(%rcx), %r11d
|
||||||
andl $(ROBUST_BIT|PI_BIT), %r11d
|
andl $(ROBUST_BIT|PI_BIT), %r11d
|
||||||
cmpl $PI_BIT, %r11d
|
cmpl $PI_BIT, %r11d
|
||||||
@@ -134,7 +134,7 @@ __pthread_cond_signal:
|
|||||||
#if cond_lock != 0
|
#if cond_lock != 0
|
||||||
addq $cond_lock, %rdi
|
addq $cond_lock, %rdi
|
||||||
#endif
|
#endif
|
||||||
cmpq $-1, dep_mutex-cond_lock(%rdi)
|
LP_OP(cmp) $-1, dep_mutex-cond_lock(%rdi)
|
||||||
movl $LLL_PRIVATE, %eax
|
movl $LLL_PRIVATE, %eax
|
||||||
movl $LLL_SHARED, %esi
|
movl $LLL_SHARED, %esi
|
||||||
cmovne %eax, %esi
|
cmovne %eax, %esi
|
||||||
@@ -150,7 +150,7 @@ __pthread_cond_signal:
|
|||||||
#if cond_lock != 0
|
#if cond_lock != 0
|
||||||
addq $cond_lock, %rdi
|
addq $cond_lock, %rdi
|
||||||
#endif
|
#endif
|
||||||
cmpq $-1, dep_mutex-cond_lock(%rdi)
|
LP_OP(cmp) $-1, dep_mutex-cond_lock(%rdi)
|
||||||
movl $LLL_PRIVATE, %eax
|
movl $LLL_PRIVATE, %eax
|
||||||
movl $LLL_SHARED, %esi
|
movl $LLL_SHARED, %esi
|
||||||
cmovne %eax, %esi
|
cmovne %eax, %esi
|
||||||
|
|||||||
Reference in New Issue
Block a user