diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2006-02-01 09:25:33 +0000 |
---|---|---|
committer | Peter S. Mazinger <ps.m@gmx.net> | 2006-02-01 09:25:33 +0000 |
commit | fd56af193eff8ad598d2789e970150d7a363c890 (patch) | |
tree | c5ec50abc7960fcaf509b4b1b3a27e4a9302f345 /libpthread/linuxthreads/sysdeps/arm/pspinlock.c | |
parent | f45706ca6ade259d2cf9397c35b0135991470197 (diff) |
change asm/volatile to __x__
Diffstat (limited to 'libpthread/linuxthreads/sysdeps/arm/pspinlock.c')
-rw-r--r-- | libpthread/linuxthreads/sysdeps/arm/pspinlock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libpthread/linuxthreads/sysdeps/arm/pspinlock.c b/libpthread/linuxthreads/sysdeps/arm/pspinlock.c index 665e270b6..9deb0b1b1 100644 --- a/libpthread/linuxthreads/sysdeps/arm/pspinlock.c +++ b/libpthread/linuxthreads/sysdeps/arm/pspinlock.c @@ -28,7 +28,7 @@ __pthread_spin_lock (pthread_spinlock_t *lock) unsigned int val; do - asm volatile ("swp %0, %1, [%2]" + __asm__ __volatile__ ("swp %0, %1, [%2]" : "=r" (val) : "0" (1), "r" (lock) : "memory"); @@ -44,7 +44,7 @@ __pthread_spin_trylock (pthread_spinlock_t *lock) { unsigned int val; - asm volatile ("swp %0, %1, [%2]" + __asm__ __volatile__ ("swp %0, %1, [%2]" : "=r" (val) : "0" (1), "r" (lock) : "memory"); |