Changeset 337 for trunk/kernel/libk/remote_spinlock.c
- Timestamp:
- Aug 7, 2017, 12:50:17 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/libk/remote_spinlock.c
r296 r337 141 141 142 142 hal_remote_swd( XPTR( lock_cxy , &lock_ptr->owner ) , XPTR_NULL ); 143 144 143 hal_remote_sw ( XPTR( lock_cxy , &lock_ptr->taken ) , 0 ); 145 146 144 thread_ptr->remote_locks--; 147 148 145 xlist_unlink( XPTR( lock_cxy , &lock_ptr->list ) ); 149 146 147 // deschedule if pending request 148 thread_check_sched(); 149 150 // restore IRQs 150 151 hal_restore_irq( irq_state ); 151 152 } … … 211 212 212 213 hal_remote_swd( XPTR( lock_cxy , &lock_ptr->owner ) , XPTR_NULL ); 213 214 214 hal_remote_sw ( XPTR( lock_cxy , &lock_ptr->taken ) , 0 ); 215 216 215 thread_ptr->remote_locks--; 217 218 216 xlist_unlink( XPTR( lock_cxy , &lock_ptr->list ) ); 217 218 // deschedule if pending request 219 thread_check_sched(); 219 220 } 220 221
Note: See TracChangeset
for help on using the changeset viewer.