Changeset 565 for trunk/kernel/devices/dev_nic.c
- Timestamp:
- Oct 4, 2018, 11:48:51 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/devices/dev_nic.c
r492 r565 99 99 core_t * core = thread_ptr->core; 100 100 101 // check thread can yield 102 assert( (thread_ptr->busylocks == 0), 103 "cannot yield : busylocks = %d\n", thread_ptr->busylocks ); 104 101 105 #if DEBUG_DEV_NIC_RX 102 106 uint32_t cycle = (uint32_t)hal_get_cycles(); … … 133 137 dev_pic_enable_irq( core->lid , dev_xp ); 134 138 135 // block on THREAD_BLOCKED_IO condition and deschedule139 // block client thread on THREAD_BLOCKED_IO 136 140 thread_block( XPTR( local_cxy , thread_ptr ) , THREAD_BLOCKED_IO ); 141 142 // deschedule client thread 137 143 sched_yield("client blocked on I/O"); 138 144 … … 176 182 // get local pointer on core running this kernel thead 177 183 core_t * core = thread_ptr->core; 184 185 // check thread can yield 186 assert( (thread_ptr->busylocks == 0), 187 "cannot yield : busylocks = %d\n", thread_ptr->busylocks ); 178 188 179 189 #if DEBUG_DEV_NIC_RX … … 211 221 dev_pic_enable_irq( core->lid ,dev_xp ); 212 222 213 // block on THREAD_BLOCKED I/O condition and deschedule223 // block client thread on THREAD_BLOCKED I/O condition 214 224 thread_block( XPTR( local_cxy , thread_ptr ) , THREAD_BLOCKED_IO ); 225 226 // deschedule client thread 215 227 sched_yield("client blocked on I/O"); 216 228
Note: See TracChangeset
for help on using the changeset viewer.