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

Author: Philippe Gerum <r...@xenomai.org>
Date:   Sun Jul 19 23:15:38 2009 +0200

x86: fix 2.6.30 build in 32bit mode

---

 ksrc/arch/x86/hal-common.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/ksrc/arch/x86/hal-common.c b/ksrc/arch/x86/hal-common.c
index 5adeae3..b0be990 100644
--- a/ksrc/arch/x86/hal-common.c
+++ b/ksrc/arch/x86/hal-common.c
@@ -193,9 +193,11 @@ static inline void send_IPI_allbutself(int vector)
                          | vector);
        rthal_local_irq_restore_hw(flags);
 }
-#elif defined(__i386__)
+#elif defined(__i386__) && LINUX_VERSION_CODE < KERNEL_VERSION(2,6,30)
 #include <mach_ipi.h>
-#endif
+#else
+#define send_IPI_allbutself(vector)    apic->send_IPI_allbutself(vector)
+#endif /* __i386__ && < 2.6.30 */
 
 DECLARE_LINUX_IRQ_HANDLER(rthal_broadcast_to_local_timers, irq, dev_id)
 {


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

Reply via email to