ソースを参照

sync with glibc

Mike Frysinger 19 年 前
コミット
4cb089f596
1 ファイル変更1 行追加1 行削除
  1. 1 1
      libpthread/linuxthreads/spinlock.c

+ 1 - 1
libpthread/linuxthreads/spinlock.c

@@ -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;