When I wrote driver for COM1 or COM2 with InterruptAttach() function and
ISR Handler separately, they both work fine independently. When I put
two ISRs for both COM1 and COM2 together in each thread, the program
will have Memory Fault
(Core Dump). For COM1, InterruptAttach() and InterruptWait() are in
thread1; while for COM2, InterruptAttach() and InterruptWait() are in
thread2. It seems that kernel mess the event from InterruptWait().
Another thing I did is that in Handler of COM2 the return NULL is always
given, however, the problem is still there. Hence my question is that
whether QNXRTP supports multiple ISR in different threads independently
or in same thread. The answer for me should be positive!