]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - include/asm-powerpc/system.h
ieee1394: merge from Linus
[mv-sheeva.git] / include / asm-powerpc / system.h
index 7307aa775671e415c69829cdbb5aaac35f8dca5d..4c9f5229e83355a6af341841e6230277422bd39b 100644 (file)
 #define smp_read_barrier_depends()     do { } while(0)
 #endif /* CONFIG_SMP */
 
+/*
+ * This is a barrier which prevents following instructions from being
+ * started until the value of the argument x is known.  For example, if
+ * x is a variable loaded from memory, this prevents following
+ * instructions from being executed until the load has been performed.
+ */
+#define data_barrier(x)        \
+       asm volatile("twi 0,%0,0; isync" : : "r" (x) : "memory");
+
 struct task_struct;
 struct pt_regs;