Jan Kiszka wrote:
Wolfgang Grandegger wrote:

Hello,

I just checked out Xenomai and realized the UVM build error below (while
building for PPC 405 with IPIPE tracer).  "xnlock_put/get" seems not to
be dummy without SMP.

Wolfgang.



Try this patch. It fixes the problem and also appears to me as the
correct way to solve it (UVM is a UP-machine, spinlocks are void).

Jan


--- include/asm-uvm/system.h    (Revision 1022)
+++ include/asm-uvm/system.h    (Arbeitskopie)
@@ -67,6 +67,8 @@ typedef unsigned long xnlock_t;
 #define XNARCH_LOCK_UNLOCKED 0

 #define xnlock_init(lock)              do { } while(0)
+#define xnlock_get(lock)               do { } while(0)
+#define xnlock_put(lock)               do { } while(0)
 #define xnlock_get_irqsave(lock,x)     ((x) = xnarch_lock_irq())
 #define xnlock_put_irqrestore(lock,x)  xnarch_unlock_irq(x)
 #define xnlock_clear_irqoff(lock)      xnarch_lock_irq()



Fixed, thanks.

--

Philippe.

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

Reply via email to