Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2008-09-09 02:25:14 +0400
committerJeff Johnston <jjohnstn@redhat.com>2008-09-09 02:25:14 +0400
commitda64e6bb4ea8e1c7ef7aadd113ed701089fb1512 (patch)
tree0b3589a6779e580f34477da7d7ad006d32202819 /newlib/libc/sys/linux/linuxthreads
parent49c5a1a6b21b379537d114793276ed39fd70917b (diff)
008-09-08 Jeff Johnston <jjohnstn@redhat.com>
* libc/sys/linux/dl/atomicity.h (exchange_and_add): Fix asm statement to use "m" instead of "0". (atomic_add): Ditto. * libc/sys/linux/linuxthreads/spinlock.c (__pthread_release): Ditto. * libc/sys/linux/net/getaddrinfo.c: Add limit.h include. * libc/sys/linux/stdlib/glob.c: Ditto.
Diffstat (limited to 'newlib/libc/sys/linux/linuxthreads')
-rw-r--r--newlib/libc/sys/linux/linuxthreads/spinlock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/sys/linux/linuxthreads/spinlock.c b/newlib/libc/sys/linux/linuxthreads/spinlock.c
index 3e1682599..f21426ffe 100644
--- a/newlib/libc/sys/linux/linuxthreads/spinlock.c
+++ b/newlib/libc/sys/linux/linuxthreads/spinlock.c
@@ -31,7 +31,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));
}
#endif
@@ -110,7 +110,7 @@ again:
#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;