This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CpIntc_dispatchPlug()关联的SRIO的Doorbell处理函数中,怎么发送通知消息出去?我试MessageQ_put,会报错。



程序中我是用:

CpIntc_dispatchPlug(CSL_INTC0_INTDST0, (CpIntc_FuncPtr)DoorBellIsr, (UArg)hDrvManagedSrioDrv, TRUE);

关联了一个名叫DoorBellstr的处理函数;

在这个处理函数怎么发送类似于MessageQ或Notify的消息出去? MessageQ是在Task中创建的。

我尝试在里面MessageQ_put,老是报GateSwi.............badContext错误。我甚至还试过Semaphore_post(),也不行。

难道在HWI / SWI的上下文环境中没有办法发送消息,只能设计个全局变量,另一边轮询?或者用高大上的QMSS?