Made vectored and level interrupts mutually exclusive, with VSched returning on interrupt calls if vectored IRQ callback registered.
This commit is contained in:
parent
b19d2474f3
commit
c308c2a8d3
1 changed files with 7 additions and 0 deletions
|
|
@ -378,6 +378,13 @@ VPROC_RTN_TYPE VSched (VSCHED_PARAMS)
|
|||
// Sample inputs and update node state
|
||||
ns[node]->rcv_buf.data_in = VPDataIn;
|
||||
ns[node]->rcv_buf.interrupt = Interrupt;
|
||||
|
||||
// If call to VSched is for interrupt and vector IRQ enabled (with callback registered)
|
||||
// don't process here with the level interrupt code and just return.
|
||||
if (Interrupt && ns[node]->VUserIrqCB != NULL)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Send message to VUser with VPDataIn value
|
||||
debug_io_printf("VSched(): setting rcv[%d] semaphore\n", node);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue