about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/mips/sys/tas.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/unix/sysv/linux/mips/sys/tas.h')
-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 bc7f52a206..8409535943 100644
--- a/sysdeps/unix/sysv/linux/mips/sys/tas.h
+++ b/sysdeps/unix/sysv/linux/mips/sys/tas.h
@@ -52,7 +52,8 @@ _test_and_set (int *p, int v) __THROW
      ".set	pop\n\t"
      "sc	%1,%2\n\t"
      "beqz	%1,1b\n"
-     "2:"
+     "2:\n\t"
+     ".set\tmips0"
      : "=&r" (r), "=&r" (t), "=m" (*p)
      : "m" (*p), "r" (v)
      : "memory");