aboutsummaryrefslogtreecommitdiff
path: root/nptl
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-11-28 23:52:24 +0000
committerUlrich Drepper <drepper@redhat.com>2002-11-28 23:52:24 +0000
commitc102b41c2bb29b8fe91875f7395c70f033ea7250 (patch)
treee160707c25e7c808f993c5c9756a7d934ac1731e /nptl
parentddf4ffadf624d9aa4530f551d48d210e17713665 (diff)
downloadglibc-c102b41c2bb29b8fe91875f7395c70f033ea7250.tar
glibc-c102b41c2bb29b8fe91875f7395c70f033ea7250.tar.gz
glibc-c102b41c2bb29b8fe91875f7395c70f033ea7250.tar.bz2
glibc-c102b41c2bb29b8fe91875f7395c70f033ea7250.zip
Define HAVE_CMOV.
Diffstat (limited to 'nptl')
-rw-r--r--nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S11
-rw-r--r--nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevelrwlock.S1
2 files changed, 10 insertions, 2 deletions
diff --git a/nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S b/nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S
index 2dde246d1f..8d682d94c0 100644
--- a/nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S
+++ b/nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S
@@ -537,8 +537,15 @@ __pthread_rwlock_unlock:
movl $1, %ecx
leal WRITERS_WAKEUP(%edi), %eax
cmpl $0, WRITERS_QUEUED(%edi)
- cmovne %ecx, %edx
- cmovne %eax, %ebx
+#ifdef HAVE_CMOV
+ cmovnel %ecx, %edx
+ cmovnel %eax, %ebx
+#else
+ je 0f
+ movl %ecx, %edx
+ movl %eax, %ebx
+0:
+#endif
movl $SYS_futex, %eax
int $0x80
diff --git a/nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevelrwlock.S b/nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevelrwlock.S
index 6f4a8305ee..cc47163957 100644
--- a/nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevelrwlock.S
+++ b/nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevelrwlock.S
@@ -17,4 +17,5 @@
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA. */
+#define HAVE_CMOV 1
#include "../i486/lowlevelrwlock.S"