Changeset 697 for soft/giet_vm/giet_kernel/ctx_handler.c
- Timestamp:
- Aug 7, 2015, 5:42:06 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_kernel/ctx_handler.c
r696 r697 30 30 static_scheduler_t* psched = (static_scheduler_t*)_get_sched(); 31 31 32 // pretend the task to kill is scheduled (required for sys_handler calls) 33 unsigned int cur_task = psched->current; 34 psched->current = ltid; 35 32 36 // release private TTY terminal if required 33 37 if ( psched->context[ltid][CTX_TTY_ID] < NB_TTY_CHANNELS ) 34 38 { 35 psched->context[ltid][CTX_TTY_ID] = 0xFFFFFFFF;36 39 _sys_tty_release(); 40 psched->context[ltid][CTX_TTY_ID] = -1; 37 41 } 38 42 … … 40 44 if ( psched->context[ltid][CTX_TIM_ID] < NB_TIM_CHANNELS ) 41 45 { 42 psched->context[ltid][CTX_TIM_ID] = 0xFFFFFFFF;43 46 _sys_tim_release(); 47 psched->context[ltid][CTX_TIM_ID] = -1; 44 48 } 45 49 … … 47 51 if ( psched->context[ltid][CTX_NIC_RX_ID] < NB_NIC_CHANNELS ) 48 52 { 49 psched->context[ltid][CTX_NIC_RX_ID] = 0xFFFFFFFF;50 53 _sys_nic_release( 1 ); 54 psched->context[ltid][CTX_NIC_RX_ID] = -1; 51 55 } 52 56 … … 54 58 if ( psched->context[ltid][CTX_NIC_TX_ID] < NB_NIC_CHANNELS ) 55 59 { 56 psched->context[ltid][CTX_NIC_TX_ID] = 0xFFFFFFFF;57 60 _sys_nic_release( 0 ); 58 } 61 psched->context[ltid][CTX_NIC_TX_ID] = -1; 62 } 63 64 // restore scheduled task 65 psched->current = cur_task; 59 66 60 67 // set NORUN_MASK_TASK bit
Note: See TracChangeset
for help on using the changeset viewer.