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

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

arm: fix previous commit

---

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

diff --git a/include/asm-arm/atomic.h b/include/asm-arm/atomic.h
index f83f71a..0345b09 100644
--- a/include/asm-arm/atomic.h
+++ b/include/asm-arm/atomic.h
@@ -28,7 +28,7 @@
 typedef struct { unsigned long counter; } xnarch_atomic_t;
 typedef xnarch_atomic_t atomic_counter_t;
 
-#define xnarch_atomic_get(v)   (*(volatile unsigned long *)(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