From fd56af193eff8ad598d2789e970150d7a363c890 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Wed, 1 Feb 2006 09:25:33 +0000 Subject: change asm/volatile to __x__ --- libpthread/linuxthreads/sysdeps/s390/pspinlock.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libpthread/linuxthreads/sysdeps/s390/pspinlock.c') 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; -- cgit v1.2.3