OSDN Git Service

sync with glibc
authorMike Frysinger <vapier@gentoo.org>
Thu, 8 Sep 2005 02:59:43 +0000 (02:59 -0000)
committerMike Frysinger <vapier@gentoo.org>
Thu, 8 Sep 2005 02:59:43 +0000 (02:59 -0000)
libpthread/linuxthreads/spinlock.c

index c0e7a36..cdf45f1 100644 (file)
@@ -108,7 +108,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;