* sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Don't
set mips2.
2000-12-05 Andreas Jaeger <aj@suse.de>
+ * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Don't
+ set mips2.
+
* sysdeps/unix/sysv/linux/mips/sysdep.h: New file.
* sysdeps/unix/sysv/linux/mips/sys/syscall.h: Removed.
+2000-12-05 Andreas Jaeger <aj@suse.de>
+
+ * sysdeps/mips/pspinlock.c (__pthread_spin_lock): Don't set mips2.
+ * sysdeps/mips/pt-machine.h (testandset): Likewise.
+ (__compare_and_swap): Likewise.
+ Patches by "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>.
+
2000-11-20 Jakub Jelinek <jakub@redhat.com>
* Examples/ex3.c (main): Cast int to long before casting to void *.
int r, t;
__asm__ __volatile__
- (".set\tmips2\n"
- "1:\n\t"
+ ("1:\n\t"
"ll %0,%3\n\t"
".set push\n\t"
".set noreorder\n\t"
".set pop\n\t"
"sc %1,%2\n\t"
"beqz %1,1b\n"
- "2:\n\t"
- ".set\tmips0"
+ "2:\n"
: "=&r" (r), "=&r" (t), "=m" (*p)
: "m" (*p), "r" (v)
: "memory");