aboutsummaryrefslogtreecommitdiff
path: root/linuxthreads/sysdeps/mips/pspinlock.c
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2000-08-12 09:29:03 +0000
committerAndreas Jaeger <aj@suse.de>2000-08-12 09:29:03 +0000
commit567152ea54b5f76db543779ae0a148e543fb7587 (patch)
tree3b6d432a62851b5da3abb6a95bc3aecf35a36fbb /linuxthreads/sysdeps/mips/pspinlock.c
parent966e8ffc0042d817f63d08a12145147c3785f242 (diff)
downloadglibc-567152ea54b5f76db543779ae0a148e543fb7587.zip
glibc-567152ea54b5f76db543779ae0a148e543fb7587.tar.gz
glibc-567152ea54b5f76db543779ae0a148e543fb7587.tar.bz2
* sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Add .set mips2 for assembler. * sysdeps/mips/pt-machine.h (testandset): Add .set mips2 for assembler. (__compare_and_swap): Likewise. * sysdeps/mips/pspinlock.c (__pthread_spin_lock): Likewise.
Diffstat (limited to 'linuxthreads/sysdeps/mips/pspinlock.c')
-rw-r--r--linuxthreads/sysdeps/mips/pspinlock.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/linuxthreads/sysdeps/mips/pspinlock.c b/linuxthreads/sysdeps/mips/pspinlock.c
index 7df3040..caa82e3 100644
--- a/linuxthreads/sysdeps/mips/pspinlock.c
+++ b/linuxthreads/sysdeps/mips/pspinlock.c
@@ -32,7 +32,8 @@ __pthread_spin_lock (pthread_spinlock_t *lock)
unsigned int tmp;
asm volatile
- ("\t\t\t# spin_lock\n\t"
+ (".set mips2\n\t"
+ "\t\t\t# spin_lock\n\t"
"1:\n\t"
"ll %1,%2\n\t"
".set push\n\t"