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

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

blackfin: introduce rmb, wmb wrappers

---

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

diff --git a/include/asm-blackfin/atomic.h b/include/asm-blackfin/atomic.h
index 117a36b..5af48b3 100644
--- a/include/asm-blackfin/atomic.h
+++ b/include/asm-blackfin/atomic.h
@@ -27,8 +27,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()
 
 #define xnarch_atomic_set(pcounter,i)           atomic_set(pcounter,i)
 #define xnarch_atomic_get(pcounter)             atomic_read(pcounter)


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

Reply via email to