aboutsummaryrefslogtreecommitdiff
path: root/linuxthreads/sysdeps/sh/pt-machine.h
diff options
context:
space:
mode:
Diffstat (limited to 'linuxthreads/sysdeps/sh/pt-machine.h')
-rw-r--r--linuxthreads/sysdeps/sh/pt-machine.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/linuxthreads/sysdeps/sh/pt-machine.h b/linuxthreads/sysdeps/sh/pt-machine.h
index 1fc9c47773..e5e5597a91 100644
--- a/linuxthreads/sysdeps/sh/pt-machine.h
+++ b/linuxthreads/sysdeps/sh/pt-machine.h
@@ -30,10 +30,10 @@ testandset (int *spinlock)
int ret;
__asm__ __volatile__(
- "tas.b %1\n\t"
+ "tas.b @%1\n\t"
"movt %0"
- : "=z" (ret), "=m" (*spinlock)
- : /* "1" (*spinlock) */
+ : "=z" (ret)
+ : "r" (spinlock)
: "memory", "cc");
return ret;