diff options
Diffstat (limited to 'libpthread/linuxthreads/sysdeps/arm')
-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"); |