Fix ppc64 atomic bitops in Fusion to use 64-bit types as that's how the types are defined.

-- Heikki Lindholm
--- ../cvs-versions/fusion/include/nucleus/asm-ppc64/atomic.h   2005-07-17 
17:42:44.000000000 +0300
+++ include/nucleus/asm-ppc64/atomic.h  2005-09-04 11:29:26.105373000 +0300
@@ -30,9 +30,9 @@
                                       unsigned long *ptr)
 {
     __asm__ __volatile__ ("\n\
-1:     lwarx   5,0,%0 \n\
+1:     ldarx   5,0,%0 \n\
        or      5,5,%1\n"
-"      stwcx.  5,0,%0 \n\
+"      stdcx.  5,0,%0 \n\
        bne-    1b"
        : /*no output*/
        : "r" (ptr), "r" (mask)
@@ -43,9 +43,9 @@
                                         unsigned long *ptr)
 {
     __asm__ __volatile__ ("\n\
-1:     lwarx   5,0,%0 \n\
+1:     ldarx   5,0,%0 \n\
        andc    5,5,%1\n"
-"      stwcx.  5,0,%0 \n\
+"      stdcx.  5,0,%0 \n\
        bne-    1b"
        : /*no output*/
        : "r" (ptr), "r" (mask)

Reply via email to