From 1f81acbcbc5f0a2641f380ecc15e2358784b2001 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Fri, 23 Jan 2004 13:17:52 +0000 Subject: * sysdeps/ieee754/dbl-64/e_pow.c (log2): Rename to my_log2 to avoid warnings for builtin function log2. 2004-01-22 Andreas Jaeger --- linuxthreads/spinlock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'linuxthreads/spinlock.c') diff --git a/linuxthreads/spinlock.c b/linuxthreads/spinlock.c index 47107bf9ee..08fff082ef 100644 --- a/linuxthreads/spinlock.c +++ b/linuxthreads/spinlock.c @@ -30,7 +30,7 @@ static inline void __pthread_release(int * spinlock) { WRITE_MEMORY_BARRIER(); *spinlock = __LT_SPINLOCK_INIT; - __asm __volatile ("" : "=m" (*spinlock) : "0" (*spinlock)); + __asm __volatile ("" : "=m" (*spinlock) : "m" (*spinlock)); } @@ -106,7 +106,7 @@ void internal_function __pthread_lock(struct _pthread_fastlock * lock, #ifdef BUSY_WAIT_NOP BUSY_WAIT_NOP; #endif - __asm __volatile ("" : "=m" (lock->__status) : "0" (lock->__status)); + __asm __volatile ("" : "=m" (lock->__status) : "m" (lock->__status)); } lock->__spinlock += (spin_count - lock->__spinlock) / 8; -- cgit v1.2.3