Ignore:
Timestamp:
Jul 18, 2015, 3:00:42 PM (9 years ago)
Author:
alain
Message:

Modify the task activation/desactivation mechanism
to support the _kill_application() and _exec_application() system functions.
The RUN Boolean in task context has been replaced by the NORUN bit-vector.

File:
1 edited

Legend:

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

    r528 r629  
    3939            " - CTX_RA    = %x\n"
    4040            " - CTX_SP    = %x\n"
    41             " - CTX_RUN  = %x\n"
     41            " - CTX_NORUN = %x\n"
    4242            "########## %s\n",
    4343            x , y , p , ltid ,
     
    4949            psched->context[ltid][CTX_RA_ID],
    5050            psched->context[ltid][CTX_SP_ID],
    51             psched->context[ltid][CTX_RUN_ID],
     51            psched->context[ltid][CTX_NORUN_ID],
    5252            string );
    5353}  // _ctx_display()
     
    7979        next_task_id = tid % tasks;
    8080        // test if the task is runable
    81         if ( psched->context[next_task_id][CTX_RUN_ID] )
     81        if ( psched->context[next_task_id][CTX_NORUN_ID] == 0 )
    8282        {
    8383            found = 1;
Note: See TracChangeset for help on using the changeset viewer.