summaryrefslogtreecommitdiff
path: root/libpthread/linuxthreads/sysdeps/hppa/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/hppa/pspinlock.c
parentf45706ca6ade259d2cf9397c35b0135991470197 (diff)
change asm/volatile to __x__
Diffstat (limited to 'libpthread/linuxthreads/sysdeps/hppa/pspinlock.c')
-rw-r--r--libpthread/linuxthreads/sysdeps/hppa/pspinlock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libpthread/linuxthreads/sysdeps/hppa/pspinlock.c b/libpthread/linuxthreads/sysdeps/hppa/pspinlock.c
index 7f481fa4b..71a537fd6 100644
--- a/libpthread/linuxthreads/sysdeps/hppa/pspinlock.c
+++ b/libpthread/linuxthreads/sysdeps/hppa/pspinlock.c
@@ -27,7 +27,7 @@ __pthread_spin_lock (pthread_spinlock_t *lock)
unsigned int val;
do
- asm volatile ("ldcw %1,%0"
+ __asm__ __volatile__ ("ldcw %1,%0"
: "=r" (val), "=m" (*lock)
: "m" (*lock));
while (!val);
@@ -42,7 +42,7 @@ __pthread_spin_trylock (pthread_spinlock_t *lock)
{
unsigned int val;
- asm volatile ("ldcw %1,%0"
+ __asm__ __volatile__ ("ldcw %1,%0"
: "=r" (val), "=m" (*lock)
: "m" (*lock));