Define HAVE_CMOV and include i486 version.
authordrepper <drepper>
Tue, 3 Dec 2002 20:21:08 +0000 (20:21 +0000)
committerdrepper <drepper>
Tue, 3 Dec 2002 20:21:08 +0000 (20:21 +0000)
nptl/sysdeps/i386/i686/pthread_spin_trylock.S

index 2ab83e6..a5d861f 100644 (file)
    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
    02111-1307 USA.  */
 
    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
    02111-1307 USA.  */
 
-#define EBUSY  16
-
-
-#ifdef UP
-# define LOCK
-#else
-# define LOCK lock
-#endif
-
-       .globl  pthread_spin_trylock
-       .type   pthread_spin_trylock,@function
-       .align  16
-pthread_spin_trylock:
-       movl    4(%esp), %edx
-       movl    $1, %eax
-       xorl    %ecx, %ecx
-       LOCK
-       cmpxchgl %ecx, (%edx)
-       movl    $EBUSY, %edx
-       movl    %ecx, %eax
-       cmovne  %edx, %eax
-       ret
-       .size   pthread_spin_trylock,.-pthread_spin_trylock
+#define HAVE_CMOV      1
+#include "../i486/pthread_spin_trylock.S"