소스 검색

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;