X-Git-Url: http://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=urcu%2Farch_ppc.h;h=e1a827044aa424ead1d48510eb6b90a7e598b1a6;hp=7a217c837dfb1cba0aad10ee0495e4d9adddd6e6;hb=06f22bdbb0c4c4d5db42a2e2dc35818aa61415be;hpb=05dd4b94f48c1717c18e0dcee88830394a5f171c diff --git a/urcu/arch_ppc.h b/urcu/arch_ppc.h index 7a217c8..e1a8270 100644 --- a/urcu/arch_ppc.h +++ b/urcu/arch_ppc.h @@ -30,9 +30,9 @@ extern "C" { #endif /* Include size of POWER5+ L3 cache lines: 256 bytes */ -#define CACHE_LINE_SIZE 256 +#define CAA_CACHE_LINE_SIZE 256 -#define mb() asm volatile("sync":::"memory") +#define cmm_mb() asm volatile("sync":::"memory") #define mftbl() \ ({ \ @@ -56,9 +56,9 @@ static inline cycles_t get_cycles (void) for (;;) { h = mftbu(); - barrier(); + cmm_barrier(); l = mftbl(); - barrier(); + cmm_barrier(); if (mftbu() == h) return (((cycles_t) h) << 32) + l; }