diff options
| author | Peter S. Mazinger <ps.m@gmx.net> | 2006-02-01 09:25:33 +0000 | 
|---|---|---|
| committer | Peter S. Mazinger <ps.m@gmx.net> | 2006-02-01 09:25:33 +0000 | 
| commit | fd56af193eff8ad598d2789e970150d7a363c890 (patch) | |
| tree | c5ec50abc7960fcaf509b4b1b3a27e4a9302f345 /libpthread/linuxthreads/spinlock.c | |
| parent | f45706ca6ade259d2cf9397c35b0135991470197 (diff) | |
| download | uClibc-alpine-fd56af193eff8ad598d2789e970150d7a363c890.tar.bz2 uClibc-alpine-fd56af193eff8ad598d2789e970150d7a363c890.tar.xz  | |
change asm/volatile to __x__
Diffstat (limited to 'libpthread/linuxthreads/spinlock.c')
| -rw-r--r-- | libpthread/linuxthreads/spinlock.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/libpthread/linuxthreads/spinlock.c b/libpthread/linuxthreads/spinlock.c index 08fff082e..6b6610688 100644 --- a/libpthread/linuxthreads/spinlock.c +++ b/libpthread/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) : "m" (*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) : "m" (lock->__status)); +      __asm__ __volatile__ ("" : "=m" (lock->__status) : "m" (lock->__status));      }      lock->__spinlock += (spin_count - lock->__spinlock) / 8;  | 
