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-4.0-testing] x86, atomic: Fix 32-bit version of ato

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-4.0-testing] x86, atomic: Fix 32-bit version of atomic_write64().
From: "Xen patchbot-4.0-testing" <patchbot-4.0-testing@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 23 Dec 2010 11:35:28 -0800
Delivery-date: Thu, 23 Dec 2010 11:38:49 -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 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

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