[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] x86, atomic: Fix 32-bit version of atomic_write64().
# HG changeset patch # User Keir Fraser <keir@xxxxxxx> # Date 1292595401 0 # Node ID e3fd86244491a8129cbd2b8e889f440232da6202 # Parent 534a09877cac29c0faf184b765c8c0e53da40331 x86, atomic: Fix 32-bit version of atomic_write64(). Signed-off-by: Keir Fraser <keir@xxxxxxx> --- xen/include/asm-x86/atomic.h | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -r 534a09877cac -r e3fd86244491 xen/include/asm-x86/atomic.h --- a/xen/include/asm-x86/atomic.h Fri Dec 17 11:51:10 2010 +0000 +++ b/xen/include/asm-x86/atomic.h Fri Dec 17 14:16:41 2010 +0000 @@ -36,7 +36,7 @@ static inline void atomic_write64(volati static inline void atomic_write64(volatile uint64_t *addr, uint64_t val) { uint64_t old = *addr, new, *__addr = (uint64_t *)addr; - while ( (old = __cmpxchg8b(__addr, old, val)) != old ) + while ( (new = __cmpxchg8b(__addr, old, val)) != old ) old = new; } #endif _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |