Module: xenomai-head
Branch: master
Commit: b9a7c701cedb390102a57d68a43fb8e27f70792d
URL:    
http://git.xenomai.org/?p=xenomai-head.git;a=commit;h=b9a7c701cedb390102a57d68a43fb8e27f70792d

Author: Philippe Gerum <r...@xenomai.org>
Date:   Fri Nov 12 15:26:21 2010 +0100

powerpc: introduce rmb, wmb wrappers

---

 include/asm-powerpc/atomic.h |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/include/asm-powerpc/atomic.h b/include/asm-powerpc/atomic.h
index 7b13142..ac6f9bb 100644
--- a/include/asm-powerpc/atomic.h
+++ b/include/asm-powerpc/atomic.h
@@ -30,8 +30,10 @@
 #include <asm/atomic.h>
 #include <asm/system.h>
 
-#define xnarch_atomic_xchg(ptr,v)  xchg(ptr,v)
-#define xnarch_memory_barrier()  smp_mb()
+#define xnarch_atomic_xchg(ptr,v)      xchg(ptr,v)
+#define xnarch_memory_barrier()                smp_mb()
+#define xnarch_read_memory_barrier()   rmb()
+#define xnarch_write_memory_barrier()  wmb()
 
 #ifdef CONFIG_PPC64
 static __inline__ void atomic64_clear_mask(unsigned long mask,


_______________________________________________
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to