UVM build error in todays head of SVN
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.
if ppc-linux-gcc -DHAVE_CONFIG_H -I. -I. -I../../../../src/include -O2 -D_GNU_SOURCE -D_REENTRANT -D__XENO__ -Wall -pipe -D__IN_XENO__ -Wstrict-prototypes -I../../../../include -D__XENO_UVM__ -MT pod.o -MD -MP -MF ".deps/pod.Tpo" -c -o pod.o pod.c; \
then mv -f ".deps/pod.Tpo" ".deps/pod.Po"; else rm -f ".deps/pod.Tpo"; exit 1; fi pod.c: In function 'xnpod_announce_tick':
pod.c:3304: warning: implicit declaration of function 'xnlock_get'
pod.c:3304: error: 'nklock' undeclared (first use in this function)
pod.c:3304: error: (Each undeclared identifier is reported only once
pod.c:3304: error: for each function it appears in.)
pod.c:3365: warning: implicit declaration of function 'xnlock_put'
make[4]: *** [pod.o] Error 1
make[4]: Leaving directory `/.automount/castor-vlab/root/home/wolf/rt/xenomai/src/skins/uvm/nucleus' make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/.automount/castor-vlab/root/home/wolf/rt/xenomai/src/skins/uvm' make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/.automount/castor-vlab/root/home/wolf/rt/xenomai/src/skins' make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/.automount/castor-vlab/root/home/wolf/rt/xenomai/src'
make: *** [all-recursive] Error 1
Quoted 8 lines · Wolfgang Grandegger
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
asm-uvm/system.h (Arbeitskopie) renamed from asm-uvm/system.h (Revision 1022) +2 -0
@@ -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()
Quoted 23 lines · Jan Kiszka
Quoted 8 lines · Wolfgang Grandegger
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
asm-uvm/system.h (Arbeitskopie) typedef unsigned long xnlock_t; · line 74
Quoted 8 lines
asm-uvm/system.h (Arbeitskopie) renamed from asm-uvm/system.h (Revision 1022) +2
-0@@ -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.
Signature · 1 line
Philippe.