1
0
mirror of https://sourceware.org/git/glibc.git synced 2026-01-06 11:51:29 +03:00

* 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.

This commit is contained in:
Andreas Jaeger
2000-08-12 09:29:03 +00:00
parent 966e8ffc00
commit 567152ea54
3 changed files with 8 additions and 4 deletions

View 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"