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-ppc-devel

[XenPPC] [linux-ppc-2.6] [LINUX][POWERPC] oops on making the short point

To: xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
Subject: [XenPPC] [linux-ppc-2.6] [LINUX][POWERPC] oops on making the short pointer
From: Xen patchbot-linux-ppc-2.6 <patchbot-linux-ppc-2.6@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 04 Oct 2006 15:22:42 +0000
Delivery-date: Wed, 04 Oct 2006 08:30:57 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ppc-devel-request@lists.xensource.com?subject=help>
List-id: Xen PPC development <xen-ppc-devel.lists.xensource.com>
List-post: <mailto:xen-ppc-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-ppc-devel-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
# Node ID 933613959bf6a8e48a43e1cd93d4afae4a660ec8
# Parent  c52ba3176a285683f00beaa2e82d2ed39bcedae8
[LINUX][POWERPC] oops on making the short pointer

Signed-off-by: Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
---
 include/asm-powerpc/xen/asm/synch_bitops.h |    4 +++-
 1 files changed, 3 insertions(+), 1 deletion(-)

diff -r c52ba3176a28 -r 933613959bf6 include/asm-powerpc/xen/asm/synch_bitops.h
--- a/include/asm-powerpc/xen/asm/synch_bitops.h        Thu Sep 28 12:26:59 
2006 -0400
+++ b/include/asm-powerpc/xen/asm/synch_bitops.h        Wed Oct 04 11:20:16 
2006 -0400
@@ -20,7 +20,7 @@ __synch_cmpxchg_u16(volatile unsigned sh
 __synch_cmpxchg_u16(volatile unsigned short *p, unsigned long old, unsigned 
long new)
 {
        int idx;
-       volatile unsigned int *xp = (unsigned int *)((ulong)p & 0x3);
+       volatile unsigned int *xp = (unsigned int *)((ulong)p & ~(0x3UL));
        union {
                unsigned int word;
                struct {
@@ -71,6 +71,8 @@ __synch_cmpxchg(volatile void *ptr, unsi
                                    (unsigned long)_n_, sizeof(*(ptr))); \
   })
 
+#define synch_cmpxchg_subword(ptr,o,n) __synch_cmpxchg_u16((ptr), (o), (n))
+
 #else
 #error "this only works for CONFIG_SMP"
 #endif

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

<Prev in Thread] Current Thread [Next in Thread>
  • [XenPPC] [linux-ppc-2.6] [LINUX][POWERPC] oops on making the short pointer, Xen patchbot-linux-ppc-2 . 6 <=