* sysdeps/mips/pspinlock.c (__pthread_spin_lock): Don't set mips2.
authoraj <aj>
Tue, 5 Dec 2000 18:00:31 +0000 (18:00 +0000)
committeraj <aj>
Tue, 5 Dec 2000 18:00:31 +0000 (18:00 +0000)
* sysdeps/mips/pt-machine.h (testandset): Likewise.
(__compare_and_swap): Likewise.
Patches by "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>.

linuxthreads/sysdeps/mips/pspinlock.c
linuxthreads/sysdeps/mips/pt-machine.h

index caa82e3..7df3040 100644 (file)
@@ -32,8 +32,7 @@ __pthread_spin_lock (pthread_spinlock_t *lock)
   unsigned int tmp;
 
   asm volatile
-    (".set     mips2\n\t"
-     "\t\t\t# spin_lock\n\t"
+    ("\t\t\t# spin_lock\n\t"
      "1:\n\t"
      "ll       %1,%2\n\t"
      ".set     push\n\t"
index 7b4ef61..16e2640 100644 (file)
@@ -41,8 +41,7 @@ testandset (int *spinlock)
   long int ret, temp;
 
   __asm__ __volatile__
-    (".set     mips2\n\t"
-     "/* Inline spinlock test & set */\n\t"
+    ("/* Inline spinlock test & set */\n\t"
      "1:\n\t"
      "ll       %0,%3\n\t"
      ".set     push\n\t"
@@ -88,8 +87,7 @@ __compare_and_swap (long int *p, long int oldval, long int newval)
   long int ret;
 
   __asm__ __volatile__
-    (".set     mips2\n\t"
-     "/* Inline compare & swap */\n\t"
+    ("/* Inline compare & swap */\n\t"
      "1:\n\t"
      "ll       %0,%4\n\t"
      ".set     push\n"