diff options
author | Florian Weimer <fweimer@redhat.com> | 2020-11-13 15:19:41 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2020-11-13 15:20:03 +0100 |
commit | 0f34d426acf8950599ab8a1e6a733fe4c40903a4 (patch) | |
tree | 4aa6182089282819bfc66ce899056bcb6c1779dc /sysdeps/i386/pthread_spin_trylock.S | |
parent | 4d5297253e6743f274580c6c8ca14b1f3b04f0e3 (diff) | |
download | glibc-0f34d426acf8950599ab8a1e6a733fe4c40903a4.tar.gz glibc-0f34d426acf8950599ab8a1e6a733fe4c40903a4.tar.xz glibc-0f34d426acf8950599ab8a1e6a733fe4c40903a4.zip |
x86: Remove UP macro. Define LOCK_PREFIX unconditionally.
The UP macro is never defined. Also define LOCK_PREFIX unconditionally, to the same string. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'sysdeps/i386/pthread_spin_trylock.S')
-rw-r--r-- | sysdeps/i386/pthread_spin_trylock.S | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/sysdeps/i386/pthread_spin_trylock.S b/sysdeps/i386/pthread_spin_trylock.S index 8edb676381..bdebc71f9a 100644 --- a/sysdeps/i386/pthread_spin_trylock.S +++ b/sysdeps/i386/pthread_spin_trylock.S @@ -20,17 +20,11 @@ #include <errno.h> -#ifdef UP -# define LOCK -#else -# define LOCK lock -#endif - ENTRY (pthread_spin_trylock) movl 4(%esp), %edx movl $1, %eax xorl %ecx, %ecx - LOCK + lock cmpxchgl %ecx, (%edx) movl $EBUSY, %eax #ifdef HAVE_CMOV |