add sync_core primitive
[urcu.git] / arch_ppc.h
index c68790f3dc901d0a0e2cd013e1a3b73185259780..9c4ec912537b6550e5e0676ef350635fb14cc507 100644 (file)
@@ -78,6 +78,14 @@ static inline void cpu_relax(void)
        barrier();
 }
 
+/*
+ * Serialize core instruction execution. Also acts as a compiler barrier.
+ */
+static inline void sync_core()
+{
+       asm volatile("isync" : : : "memory");
+}
+
 #define mftbl()                                                \
        ({                                              \
                unsigned long rval;                     \
This page took 0.030224 seconds and 4 git commands to generate.