diff options
Diffstat (limited to 'linuxthreads/sysdeps/mips/pt-machine.h')
-rw-r--r-- | linuxthreads/sysdeps/mips/pt-machine.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/linuxthreads/sysdeps/mips/pt-machine.h b/linuxthreads/sysdeps/mips/pt-machine.h index 16e264017d..7b4ef61857 100644 --- a/linuxthreads/sysdeps/mips/pt-machine.h +++ b/linuxthreads/sysdeps/mips/pt-machine.h @@ -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" |