Ignore:
Timestamp:
Aug 7, 2017, 12:50:17 PM (7 years ago)
Author:
alain
Message:

Introduce the delayed context switch if current thread has a lock.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/hal/tsar_mips32/drivers/soclib_pic.c

    r296 r337  
    139139            assert( (index == core->lid) , __FUNCTION__ , "illegal IPI index" );
    140140
    141             // acknowledge WTI
     141            // read mailbox content to acknowledge WTI,
    142142            uint32_t * base = soclib_pic_xcu_base();
    143143            ack = base[(XCU_WTI_REG << 5) | core->lid];
    144 
     144           
    145145            // check RPC FIFO,  and activate or create a RPC thread
    146             // it there is a pending RPC request
    147             rpc_check();
     146            // condition is always true, but we must use the ack value
     147            if( ack + 1 ) rpc_check();
    148148        }
    149149        else                                    // it is an external device
Note: See TracChangeset for help on using the changeset viewer.