aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeir Fraser <keir@xen.org>2010-12-17 14:17:31 +0000
committerKeir Fraser <keir@xen.org>2010-12-17 14:17:31 +0000
commit78cb23fbc373c6cc1d752b67afca051efffe606c (patch)
tree1689ae596ed36e9edd5f40f9e5d63a2014f3b28c
parentf2133ab9dbfa0486999520e7e765bb34ca4425f5 (diff)
downloadxen-78cb23fbc373c6cc1d752b67afca051efffe606c.tar.gz
xen-78cb23fbc373c6cc1d752b67afca051efffe606c.tar.bz2
xen-78cb23fbc373c6cc1d752b67afca051efffe606c.zip
x86, atomic: Fix 32-bit version of atomic_write64().
Signed-off-by: Keir Fraser <keir@xen.org> xen-unstable changeset: 22572:e3fd86244491 xen-unstable date: Fri Dec 17 14:16:41 2010 +0000
-rw-r--r--xen/include/asm-x86/atomic.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/include/asm-x86/atomic.h b/xen/include/asm-x86/atomic.h
index 3578c33568..345880fd12 100644
--- a/xen/include/asm-x86/atomic.h
+++ b/xen/include/asm-x86/atomic.h
@@ -42,7 +42,7 @@ static inline uint64_t atomic_read64(const volatile uint64_t *addr)
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