Changes between Version 3 and Version 4 of kernel_switch
- Timestamp:
- Aug 12, 2015, 5:33:10 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
kernel_switch
v3 v4 46 46 47 47 48 === void _ctx_switch() ===48 === void '''_ctx_switch'''() === 49 49 This 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). 50 50 It selects the next runable task to resume execution. … … 53 53 The 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. 54 54 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'''() === 57 60 The address of this function is used to initialise the return address in the "idle" task context. 58 61