[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-4.0-testing] x86, atomic: Fix 32-bit version of atomic_write64().
# HG changeset patch # User Keir Fraser <keir@xxxxxxx> # Date 1292595451 0 # Node ID 8d8c8886e8d5949668de9d3f7be7c751ca18335f # Parent b05fa0652463d322c125acdb945341e953616e59 x86, atomic: Fix 32-bit version of atomic_write64(). Signed-off-by: Keir Fraser <keir@xxxxxxx> xen-unstable changeset: 22572:e3fd86244491 xen-unstable date: Fri Dec 17 14:16:41 2010 +0000 --- xen/include/asm-x86/atomic.h | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -r b05fa0652463 -r 8d8c8886e8d5 xen/include/asm-x86/atomic.h --- a/xen/include/asm-x86/atomic.h Fri Dec 17 10:48:30 2010 +0000 +++ b/xen/include/asm-x86/atomic.h Fri Dec 17 14:17:31 2010 +0000 @@ -42,7 +42,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 |