about summary refs log tree commit diff
path: root/sysdeps/unix
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 /sysdeps/unix
parent966e8ffc0042d817f63d08a12145147c3785f242 (diff)
downloadglibc-567152ea54b5f76db543779ae0a148e543fb7587.tar.gz
glibc-567152ea54b5f76db543779ae0a148e543fb7587.tar.xz
glibc-567152ea54b5f76db543779ae0a148e543fb7587.zip
* 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 'sysdeps/unix')
-rw-r--r--sysdeps/unix/sysv/linux/mips/sys/tas.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/mips/sys/tas.h b/sysdeps/unix/sysv/linux/mips/sys/tas.h
index b24aabb46a..bc7f52a206 100644
--- a/sysdeps/unix/sysv/linux/mips/sys/tas.h
+++ b/sysdeps/unix/sysv/linux/mips/sys/tas.h
@@ -42,7 +42,8 @@ _test_and_set (int *p, int v) __THROW
   int r, t;
 
   __asm__ __volatile__
-    ("1:\n\t"
+    (".set\tmips2\n"
+     "1:\n\t"
      "ll	%0,%3\n\t"
      ".set	push\n\t"
      ".set	noreorder\n\t"