summaryrefslogtreecommitdiff
path: root/libpthread/nptl/sysdeps/powerpc/pthread_spin_lock.c
diff options
context:
space:
mode:
Diffstat (limited to 'libpthread/nptl/sysdeps/powerpc/pthread_spin_lock.c')
-rw-r--r--libpthread/nptl/sysdeps/powerpc/pthread_spin_lock.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libpthread/nptl/sysdeps/powerpc/pthread_spin_lock.c b/libpthread/nptl/sysdeps/powerpc/pthread_spin_lock.c
index e2293fda1..9334d4217 100644
--- a/libpthread/nptl/sysdeps/powerpc/pthread_spin_lock.c
+++ b/libpthread/nptl/sysdeps/powerpc/pthread_spin_lock.c
@@ -20,12 +20,11 @@
#include "pthreadP.h"
int
-pthread_spin_lock (lock)
- pthread_spinlock_t *lock;
+pthread_spin_lock (pthread_spinlock_t *lock)
{
unsigned int __tmp;
- asm volatile (
+ __asm__ __volatile__ (
"1: lwarx %0,0,%1\n"
" cmpwi 0,%0,0\n"
" bne- 2f\n"