update ppc
[lttv.git] / ltt-usertrace / ltt / ltt-usertrace-ppc.h
index 1261a83fb8694dc7d065d7a0bc1a51ff8b6f619a..417eca016fdaf698897ebfd69a3f0061e9c709d5 100644 (file)
@@ -4,6 +4,12 @@
 #ifndef __LTT_USERTRACE_PPC_H
 #define __LTT_USERTRACE_PPC_H
 
+#ifdef __powerpc64__
+#include "ltt/atomic-ppc64.h"
+#else
+#include "ltt/atomic-ppc.h"
+#endif
+
 static __inline__ unsigned long
 xchg_u32(volatile void *p, unsigned long val)
 {
@@ -11,7 +17,6 @@ xchg_u32(volatile void *p, unsigned long val)
 
        __asm__ __volatile__ ("\n\
 1:     lwarx   %0,0,%2 \n"
-       PPC405_ERR77(0,%2)
 "      stwcx.  %3,0,%2 \n\
        bne-    1b"
        : "=&r" (prev), "=m" (*(volatile unsigned long *)p)
@@ -63,7 +68,6 @@ __cmpxchg_u32(volatile unsigned int *p, unsigned int old, unsigned int new)
 1:     lwarx   %0,0,%2 \n\
        cmpw    0,%0,%3 \n\
        bne     2f \n"
-       PPC405_ERR77(0,%2)
 "      stwcx.  %4,0,%2 \n\
        bne-    1b\n"
 #ifdef CONFIG_SMP
This page took 0.023628 seconds and 4 git commands to generate.