errr...  xnintr_irq_proc() for shared-irq case is also broken indeed. xnintr_shirq_lock(shirq) should not be used there as a preemption may take place and another thread may happilly call xnintr_detach() -> xnintr_shirq_detach() -> possible [SMP: deadlock, UP: crash].

Can't believe the person who has writen this buggy code was me :o) Well, it's probably a time for some refactoring.

Best regards,
Dmitry Adamushko

Xenomai-core mailing list

Reply via email to