diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2008-08-02 20:40:14 +0000 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2008-08-02 20:40:14 +0000 |
commit | fc1964a7d295bec777d14b0f96692528bdb79437 (patch) | |
tree | c01fdc54bdeeafd02d0ae4e2e45ab073a8a579bf /sysdeps/i386/bits/memory.h | |
parent | ef8de977fc0e72ee149085e5b4b9df23b7660fbe (diff) |
2008-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
[libpthread]
* sysdeps/i386/bits/memory.h (__memory_barrier): Add memory clobber.
* sysdeps/i386/bits/spin-lock.h (__pthread_spin_trylock,
__pthread_spin_unlock): Add memory clobbers.
[libthreads]
* i386/cthreads.h (spin_unlock, spin_try_lock): Add memory clobbers.
Diffstat (limited to 'sysdeps/i386/bits/memory.h')
-rw-r--r-- | sysdeps/i386/bits/memory.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/i386/bits/memory.h b/sysdeps/i386/bits/memory.h index e47a8e2..932c408 100644 --- a/sysdeps/i386/bits/memory.h +++ b/sysdeps/i386/bits/memory.h @@ -28,7 +28,7 @@ __memory_barrier (void) /* Any lock'ed instruction will do. We just do a simple increment. */ - __asm__ __volatile ("lock; incl %0" : "=m" (i) : "m" (i)); + __asm__ __volatile ("lock; incl %0" : "=m" (i) : "m" (i) : "memory"); } /* Prevent read reordering across this function. */ |