diff options
Diffstat (limited to 'libpthread/linuxthreads/sysdeps/sh/pspinlock.c')
-rw-r--r-- | libpthread/linuxthreads/sysdeps/sh/pspinlock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libpthread/linuxthreads/sysdeps/sh/pspinlock.c b/libpthread/linuxthreads/sysdeps/sh/pspinlock.c index 2dec849d3..c4e333a74 100644 --- a/libpthread/linuxthreads/sysdeps/sh/pspinlock.c +++ b/libpthread/linuxthreads/sysdeps/sh/pspinlock.c @@ -27,7 +27,7 @@ __pthread_spin_lock (pthread_spinlock_t *lock) unsigned int val; do - asm volatile ("tas.b @%1; movt %0" + __asm__ __volatile__ ("tas.b @%1; movt %0" : "=r" (val) : "r" (lock) : "memory"); @@ -43,7 +43,7 @@ __pthread_spin_trylock (pthread_spinlock_t *lock) { unsigned int val; - asm volatile ("tas.b @%1; movt %0" + __asm__ __volatile__ ("tas.b @%1; movt %0" : "=r" (val) : "r" (lock) : "memory"); |