Skip to contentSkip to conversation

T_CPU macro

Xenomai Petr Cervenka 1 participant 1 message Nov 21, 2014

lore
Share & tools
lore
#0 lore raw

Hello.

The T_CPU macro is probably missing parentheses around the cpu argument (IMHO):
#define T_CPU(cpu) (1 << (24 + (cpu & 7)))
should be:
#define T_CPU(cpu) (1 << (24 + ((cpu) & 7)))

It's located in the include/trank/native/task.h file.

Petr