Xenomai  3.0.8
machine.h
1 
23 #ifndef _COBALT_POWERPC_ASM_MACHINE_H
24 #define _COBALT_POWERPC_ASM_MACHINE_H
25 
26 #include <linux/compiler.h>
27 
28 #define XNARCH_HOST_TICK_IRQ __ipipe_hrtimer_irq
29 
30 static inline __attribute_const__ unsigned long ffnz(unsigned long ul)
31 {
32 #ifdef CONFIG_PPC64
33  __asm__ ("cntlzd %0, %1" : "=r" (ul) : "r" (ul & (-ul)));
34  return 63 - ul;
35 #else
36  __asm__ ("cntlzw %0, %1":"=r"(ul):"r"(ul & (-ul)));
37  return 31 - ul;
38 #endif
39 }
40 
41 /* Read this last to enable default settings. */
42 #include <asm-generic/xenomai/machine.h>
43 
44 #endif /* !_COBALT_POWERPC_ASM_MACHINE_H */