Is is possible to have a routine with an sbit as a parmeter?
Are you sure that nested interrupts are enabled?
The main task for an RTOS is to switch to a new thread after an interrupt signals an event.
Second time in 24 hours I managed to get my answer in the wrong thread. Strange.