summaryrefslogtreecommitdiff
path: root/libpthread/linuxthreads/sysdeps/s390/pspinlock.c
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-02-01 09:25:33 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-02-01 09:25:33 +0000
commitfd56af193eff8ad598d2789e970150d7a363c890 (patch)
treec5ec50abc7960fcaf509b4b1b3a27e4a9302f345 /libpthread/linuxthreads/sysdeps/s390/pspinlock.c
parentf45706ca6ade259d2cf9397c35b0135991470197 (diff)
change asm/volatile to __x__
Diffstat (limited to 'libpthread/linuxthreads/sysdeps/s390/pspinlock.c')
-rw-r--r--libpthread/linuxthreads/sysdeps/s390/pspinlock.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libpthread/linuxthreads/sysdeps/s390/pspinlock.c b/libpthread/linuxthreads/sysdeps/s390/pspinlock.c
index f963f3537..98be504e1 100644
--- a/libpthread/linuxthreads/sysdeps/s390/pspinlock.c
+++ b/libpthread/linuxthreads/sysdeps/s390/pspinlock.c
@@ -34,7 +34,7 @@
int
__pthread_spin_lock (pthread_spinlock_t *lock)
{
- asm volatile(" basr 1,0\n"
+ __asm__ __volatile__(" basr 1,0\n"
"0: slr 0,0\n"
" cs 0,1,%1\n"
" jl 0b\n"
@@ -49,7 +49,7 @@ __pthread_spin_trylock (pthread_spinlock_t *lock)
{
int oldval;
- asm volatile(" slr %1,%1\n"
+ __asm__ __volatile__(" slr %1,%1\n"
" basr 1,0\n"
"0: cs %1,1,%0"
: "=m" (*lock), "=&d" (oldval)
@@ -62,7 +62,7 @@ weak_alias (__pthread_spin_trylock, pthread_spin_trylock)
int
__pthread_spin_unlock (pthread_spinlock_t *lock)
{
- asm volatile(" xc 0(4,%0),0(%0)\n"
+ __asm__ __volatile__(" xc 0(4,%0),0(%0)\n"
" bcr 15,0"
: : "a" (lock) : "memory" );
return 0;