]> sourceware.org Git - glibc.git/commitdiff
* sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Add .set ...
authorAndreas Jaeger <aj@suse.de>
Sat, 12 Aug 2000 09:29:03 +0000 (09:29 +0000)
committerAndreas Jaeger <aj@suse.de>
Sat, 12 Aug 2000 09:29:03 +0000 (09:29 +0000)
linuxthreads/sysdeps/mips/pspinlock.c
linuxthreads/sysdeps/mips/pt-machine.h
sysdeps/unix/sysv/linux/mips/sys/tas.h

index 7df3040bdac47576d7a0040bb7a5cc40c2e62d2c..caa82e38eb5fd24657585210db7fd63279fd51b7 100644 (file)
@@ -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"
index 16e264017da545fed1c177115cac8d6d5efd74db..7b4ef61857f5732989953d73e8261539d93110f0 100644 (file)
@@ -41,7 +41,8 @@ testandset (int *spinlock)
   long int ret, temp;
 
   __asm__ __volatile__
-    ("/* Inline spinlock test & set */\n\t"
+    (".set     mips2\n\t"
+     "/* Inline spinlock test & set */\n\t"
      "1:\n\t"
      "ll       %0,%3\n\t"
      ".set     push\n\t"
@@ -87,7 +88,8 @@ __compare_and_swap (long int *p, long int oldval, long int newval)
   long int ret;
 
   __asm__ __volatile__
-    ("/* Inline compare & swap */\n\t"
+    (".set     mips2\n\t"
+     "/* Inline compare & swap */\n\t"
      "1:\n\t"
      "ll       %0,%4\n\t"
      ".set     push\n"
index b24aabb46a20e1934cbb266164a25b1375884002..bc7f52a206d5de0815a90743a06fd7d76bf093da 100644 (file)
@@ -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"
This page took 0.04272 seconds and 5 git commands to generate.