[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] [TOOLS] Fix set_bit/clear bit for x86/64 in xc_linux_save



# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID f91cc71173c55f18280b12e6732d9e7509d208be
# Parent  f10127505d3c35b7ec3d6253ae200d8bb67a6cf8
[TOOLS] Fix set_bit/clear bit for x86/64 in xc_linux_save
From: John Byrne <john.l.byrne@xxxxxx>
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
---
 tools/libxc/xc_linux_save.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff -r f10127505d3c -r f91cc71173c5 tools/libxc/xc_linux_save.c
--- a/tools/libxc/xc_linux_save.c       Thu Jun 22 21:30:51 2006 +0100
+++ b/tools/libxc/xc_linux_save.c       Thu Jun 22 21:37:33 2006 +0100
@@ -91,12 +91,12 @@ static inline int test_bit (int nr, vola
 
 static inline void clear_bit (int nr, volatile void * addr)
 {
-    BITMAP_ENTRY(nr, addr) &= ~(1 << BITMAP_SHIFT(nr));
+    BITMAP_ENTRY(nr, addr) &= ~(1UL << BITMAP_SHIFT(nr));
 }
 
 static inline void set_bit ( int nr, volatile void * addr)
 {
-    BITMAP_ENTRY(nr, addr) |= (1 << BITMAP_SHIFT(nr));
+    BITMAP_ENTRY(nr, addr) |= (1UL << BITMAP_SHIFT(nr));
 }
 
 /* Returns the hamming weight (i.e. the number of bits set) in a N-bit word */

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.