* [Xenomai-core] [PATCH] removing atomic_xchg from incluce/asm-poerpc/atomic.h
@ 2006-11-01 11:07 Wolfgang Grandegger
2006-11-01 11:41 ` Philippe Gerum
0 siblings, 1 reply; 2+ messages in thread
From: Wolfgang Grandegger @ 2006-11-01 11:07 UTC (permalink / raw)
To: xenomai-core
[-- Attachment #1: Type: text/plain, Size: 267 bytes --]
Hello,
the attached patch fixes:
2006-11-01 Wolfgang Grandegger <wg@domain.hid>
* include/asm-powerpc/atomic.h: remove atomic_xch because it's
used in the kernel since 2.6.18 with different arguments (pointer
of type atomic_t).
Wolfgang.
[-- Attachment #2: xenomai-powerpc-atomic-xchg.patch --]
[-- Type: text/x-patch, Size: 1553 bytes --]
Index: include/asm-powerpc/atomic.h
===================================================================
--- include/asm-powerpc/atomic.h (revision 1785)
+++ include/asm-powerpc/atomic.h (working copy)
@@ -30,9 +30,7 @@
#include <asm/atomic.h>
#include <asm/system.h>
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,15)
-#define atomic_xchg(ptr,v) xchg(ptr,v)
-#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(2,6,15) */
+#define xnarch_atomic_xchg(ptr,v) xchg(ptr,v)
#define xnarch_memory_barrier() smp_mb()
#ifdef CONFIG_PPC64
@@ -159,7 +157,7 @@
return x;
}
-#define atomic_xchg(ptr,x) \
+#define xnarch_atomic_xchg(ptr,x) \
({ \
__typeof__(*(ptr)) _x_ = (x); \
(__typeof__(*(ptr))) __xchg((ptr), (unsigned long)_x_, sizeof(*(ptr)));\
@@ -171,8 +169,6 @@
#endif /* __KERNEL__ */
-#define xnarch_atomic_xchg(ptr,v) atomic_xchg(ptr,v)
-
typedef unsigned long atomic_flags_t;
#endif /* !_XENO_ASM_POWERPC_ATOMIC_H */
Index: ChangeLog
===================================================================
--- ChangeLog (revision 1785)
+++ ChangeLog (working copy)
@@ -1,3 +1,8 @@
+2006-11-01 Wolfgang Grandegger <wg@domain.hid>
+ * include/asm-powerpc/atomic.h: remove atomic_xch because it's
+ used in the kernel since 2.6.18 with different arguments (pointer
+ of type atomic_t).
+
2006-10-31 Philippe Gerum <rpm@xenomai.org>
* include/asm-i386/wrappers.h: Add accessors to the IRQ descriptor
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-11-01 11:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-01 11:07 [Xenomai-core] [PATCH] removing atomic_xchg from incluce/asm-poerpc/atomic.h Wolfgang Grandegger
2006-11-01 11:41 ` Philippe Gerum
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.