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

Author: Philippe Gerum <r...@xenomai.org>
Date:   Sat Nov 24 17:25:35 2012 +0100

powerpc: CRITICAL: enable SMP sync insns in userland

We fix a bad issue causing SMP sync ops to be spuriously omitted when
issuing atomic constructs in userland (lwarx/stwcx and friends).

---

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

diff --git a/include/asm-powerpc/atomic.h b/include/asm-powerpc/atomic.h
index 422adda..8e2fb2b 100644
--- a/include/asm-powerpc/atomic.h
+++ b/include/asm-powerpc/atomic.h
@@ -98,6 +98,8 @@ typedef atomic_t xnarch_atomic_t;
 
 #else /* !__KERNEL__ */
 
+#include <xeno_config.h>
+
 #ifndef __powerpc64__
 typedef struct { unsigned int counter; } xnarch_atomic_t;
 /* Always enable the work-around for 405 boards in user-space for


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to