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

Author: Philippe Gerum <r...@xenomai.org>
Date:   Thu Nov 17 16:22:39 2011 +0100

mercury: use membar gcc builtin for cpu_relax() emulation

---

 include/mercury/core.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/mercury/core.h b/include/mercury/core.h
index 0a494bf..95c7925 100644
--- a/include/mercury/core.h
+++ b/include/mercury/core.h
@@ -25,6 +25,6 @@
 /* Private signal used for unblocking from syscalls. */
 #define SIGRELS        (SIGRTMIN + 9)
 
-#define cpu_relax()    do { } while (0)
+#define cpu_relax()    __sync_synchronize()
 
 #endif /* _MERCURY_CORE_H */


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

Reply via email to