Skip to content

Commit

Permalink
Fix check for PI mutex in x86-64 pthread_cond_signal
Browse files Browse the repository at this point in the history
Register eax contains the syscall number, use a different one instead.
  • Loading branch information
Andreas Schwab authored and Ulrich Drepper committed Aug 10, 2009
1 parent efa0569 commit ec49223
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions nptl/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2009-08-10 Andreas Schwab <schwab@redhat.com>

* sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
(__pthread_cond_signal): Don't clobber register used for syscall
number.

2009-08-08 Ulrich Drepper <drepper@redhat.com>

* sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S (sem_timedwait):
Expand Down
6 changes: 3 additions & 3 deletions nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ __pthread_cond_signal:

/* Get the address of the mutex used. */
movq dep_mutex(%r8), %rcx
movl MUTEX_KIND(%rcx), %eax
andl $(ROBUST_BIT|PI_BIT), %eax
cmpl $PI_BIT, %eax
movl MUTEX_KIND(%rcx), %r11d
andl $(ROBUST_BIT|PI_BIT), %r11d
cmpl $PI_BIT, %r11d
je 9f

#ifdef __ASSUME_PRIVATE_FUTEX
Expand Down

0 comments on commit ec49223

Please sign in to comment.