Changeset 160 for soft/giet_vm/sys/ctx_handler.c
- Timestamp:
- Jun 12, 2012, 4:21:27 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/sys/ctx_handler.c
r158 r160 31 31 32 32 #include <giet_config.h> 33 #include <ctx_handler.h>34 #include <sys_handler.h>35 33 #include <drivers.h> 36 34 #include <common.h> 35 #include <ctx_handler.h> 36 #include <mapping_info.h> 37 #include <sys_handler.h> 37 38 38 39 extern void _task_switch(unsigned int *, unsigned int *); … … 71 72 // return if only one task */ 72 73 if ( tasks <= 1) return; 73 74 74 75 // compute the task context base address for the current task 75 76 curr_task_id = _scheduler[proc_id].current; 76 77 curr_context = &(_scheduler[proc_id].context[curr_task_id][0]); 77 78 78 79 // select the next task using a round-robin scheduling policy 79 80 next_task_id = (curr_task_id + 1) % tasks;
Note: See TracChangeset
for help on using the changeset viewer.