All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-core] [PATCH] xenomai 2.1 ppc64 build fix
@ 2005-11-18 16:45 Heikki Lindholm
  2005-11-20 10:26 ` Philippe Gerum
  0 siblings, 1 reply; 2+ messages in thread
From: Heikki Lindholm @ 2005-11-18 16:45 UTC (permalink / raw)
  To: xenomai

[-- Attachment #1: Type: text/plain, Size: 141 bytes --]

Xenomai 2.1:

- powerpc/atomic.h lost one 64-bit #ifdef during the merge - ppc64 
defines its own atomic mask functions.

-- Heikki Lindholm

[-- Attachment #2: xenomai2.1-051118-atomic.patch --]
[-- Type: text/plain, Size: 645 bytes --]

diff -Nru xenomai/include/asm-powerpc/atomic.h xenomai-devel/include/asm-powerpc/atomic.h
--- xenomai/include/asm-powerpc/atomic.h	2005-11-08 09:43:39.000000000 +0200
+++ xenomai-devel/include/asm-powerpc/atomic.h	2005-11-18 15:37:34.000000000 +0200
@@ -210,6 +210,7 @@
     return t;
 }
 
+#ifndef __powerpc64__
 static __inline__ void atomic_set_mask(unsigned long mask,
 				       unsigned long *ptr)
 {
@@ -237,6 +238,7 @@
 	: "r" (ptr), "r" (mask)
 	: "r5", "cc", "memory");
 }
+#endif /* __powerpc64__ */
 
 #define xnarch_atomic_xchg(ptr,v)   atomic_xchg(ptr,v)
 #define xnarch_memory_barrier()     __asm__ __volatile__("": : :"memory")

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-11-20 10:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-18 16:45 [Xenomai-core] [PATCH] xenomai 2.1 ppc64 build fix Heikki Lindholm
2005-11-20 10:26 ` 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.