summaryrefslogtreecommitdiff
path: root/libpthread/linuxthreads.old/spinlock.c
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-07-23 10:59:18 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-07-23 10:59:18 +0000
commitd35b0bc119816825a657f7c9c2a1f062e7048c39 (patch)
tree92094ee13ffb04d81a4f34674bb09da5f4b5b8ec /libpthread/linuxthreads.old/spinlock.c
parent40ee4cb9496ed037957db9790e5bd87604d45fe5 (diff)
- fix asm and volatile keywords
Diffstat (limited to 'libpthread/linuxthreads.old/spinlock.c')
-rw-r--r--libpthread/linuxthreads.old/spinlock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libpthread/linuxthreads.old/spinlock.c b/libpthread/linuxthreads.old/spinlock.c
index f5999e4d2..994596d05 100644
--- a/libpthread/linuxthreads.old/spinlock.c
+++ b/libpthread/linuxthreads.old/spinlock.c
@@ -34,7 +34,7 @@ static inline void __pthread_release(int * spinlock)
{
WRITE_MEMORY_BARRIER();
*spinlock = __LT_SPINLOCK_INIT;
- __asm __volatile__ ("" : "=m" (*spinlock) : "m" (*spinlock));
+ __asm__ __volatile__ ("" : "=m" (*spinlock) : "m" (*spinlock));
}
@@ -110,7 +110,7 @@ void internal_function __pthread_lock(struct _pthread_fastlock * lock,
#ifdef BUSY_WAIT_NOP
BUSY_WAIT_NOP;
#endif
- __asm __volatile ("" : "=m" (lock->__status) : "m" (lock->__status));
+ __asm__ __volatile__ ("" : "=m" (lock->__status) : "m" (lock->__status));
}
lock->__spinlock += (spin_count - lock->__spinlock) / 8;