summaryrefslogtreecommitdiff
path: root/libpthread/linuxthreads/sysdeps/arm/pspinlock.c
diff options
context:
space:
mode:
Diffstat (limited to 'libpthread/linuxthreads/sysdeps/arm/pspinlock.c')
-rw-r--r--libpthread/linuxthreads/sysdeps/arm/pspinlock.c4
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");