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

Author: Gilles Chanteperdrix <gilles.chanteperd...@xenomai.org>
Date:   Tue Mar 20 12:30:06 2012 +0100

arm: fix build with legacy I-pipes

---

 include/asm-arm/atomic.h |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/include/asm-arm/atomic.h b/include/asm-arm/atomic.h
index ce65989..232695e 100644
--- a/include/asm-arm/atomic.h
+++ b/include/asm-arm/atomic.h
@@ -47,14 +47,14 @@ static inline void atomic_set_mask(unsigned long mask, 
unsigned long *addr)
                         : "cc");
 }
 #else /* arm <= armv5 */
-static inline void atomic_set_mask(unsigned long mask, unsigned long *addr)
-{
-       unsigned long flags;
-
-       flags = hard_local_irq_save();
-       *addr |= mask;
-       hard_local_irq_restore(flags);
-}
+#define atomic_set_mask(mask, addr)                                    \
+       ({                                                              \
+               unsigned long flags;                                    \
+                                                                       \
+               flags = hard_local_irq_save();                          \
+               *(unsigned long *)(addr) |= (unsigned long)(mask);      \
+               hard_local_irq_restore(flags);                          \
+       })
 #endif /* arm <= armv5 */
 
 #else /* !__KERNEL__ */


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

Reply via email to