Changes between Version 3 and Version 4 of kernel_switch


Ignore:
Timestamp:
Aug 12, 2015, 5:33:10 PM (9 years ago)
Author:
alain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • kernel_switch

    v3 v4  
    4646
    4747
    48  === void _ctx_switch() ===
     48 === void '''_ctx_switch'''() ===
    4949This function performs a context switch between the running (calling) task and  another runable task, using a round-robin sheduling policy between all tasks allocated to a given processor (static allocation).
    5050It selects the next runable task to resume execution.
     
    5353The return address contained in $31 is saved in the current task context (in the ctx[31] slot), and the function actually returns to the address contained in the ctx[31] slot of the next task context.
    5454
    55  === void _ctx_exec_task( unsigned int
    56  === void _ctx_eret() ===
     55 === void '''_ctx_exec_task'''( unsigned int ltid )
     56
     57 === void '''_ctx_kill_task'''( unsigned int ltid )
     58
     59 === void '''_ctx_eret'''() ===
    5760The address of this function is used to initialise the return address in the "idle" task context.
    5861