#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)
{
__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)
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