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

Author: Gilles Chanteperdrix <gilles.chanteperd...@xenomai.org>
Date:   Wed Feb 16 15:23:17 2011 +0100

arm: fix compilation with gcc 4.5.1

---

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

diff --git a/include/asm-arm/atomic.h b/include/asm-arm/atomic.h
index 98a7ca5..f83f71a 100644
--- a/include/asm-arm/atomic.h
+++ b/include/asm-arm/atomic.h
@@ -25,10 +25,10 @@
 
 #include <asm/xenomai/features.h>
 
-typedef struct { volatile unsigned long counter; } xnarch_atomic_t;
+typedef struct { unsigned long counter; } xnarch_atomic_t;
 typedef xnarch_atomic_t atomic_counter_t;
 
-#define xnarch_atomic_get(v)   ((v)->counter)
+#define xnarch_atomic_get(v)   (*(volatile unsigned long *)(v)->counter)
 static __inline__ void
 xnarch_atomic_set(xnarch_atomic_t *ptr, unsigned long val)
 {


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

Reply via email to