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

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

nios2: introduce rmb, wmb wrappers

---

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

diff --git a/include/asm-nios2/atomic.h b/include/asm-nios2/atomic.h
index 64962c2..f1398ad 100644
--- a/include/asm-nios2/atomic.h
+++ b/include/asm-nios2/atomic.h
@@ -26,8 +26,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