WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] x86, atomic: Fix 32-bit version of atomic

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] x86, atomic: Fix 32-bit version of atomic_write64().
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 23 Dec 2010 05:35:21 -0800
Delivery-date: Thu, 23 Dec 2010 05:48:47 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] x86, atomic: Fix 32-bit version of atomic_write64()., Xen patchbot-unstable <=