Changeset 706 for soft


Ignore:
Timestamp:
Aug 24, 2015, 5:08:30 PM (9 years ago)
Author:
guerin
Message:

kernel: _ctx_switch: acknowledge signal before treating it

Just to be sure we do it once

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/giet_kernel/ctx_handler.c

    r705 r706  
    296296        if ( psched->context[next_task_id][CTX_SIG_ID] & SIG_MASK_KILL )
    297297        {
    298             _ctx_kill_task( next_task_id );
    299 
    300298            // acknowledge signal
    301299            _atomic_and( &psched->context[next_task_id][CTX_SIG_ID], ~SIG_MASK_KILL );
     300
     301            _ctx_kill_task( next_task_id );
    302302        }
    303303
     
    305305        if ( psched->context[next_task_id][CTX_SIG_ID] & SIG_MASK_EXEC )
    306306        {
    307             _ctx_exec_task( next_task_id );
    308 
    309307            // acknowledge signal
    310308            _atomic_and( &psched->context[next_task_id][CTX_SIG_ID], ~SIG_MASK_EXEC );
     309
     310            _ctx_exec_task( next_task_id );
    311311        }
    312312
Note: See TracChangeset for help on using the changeset viewer.