Ignore:
Timestamp:
Jun 12, 2012, 4:21:27 PM (12 years ago)
Author:
karaoui
Message:

giet-vm new version

File:
1 edited

Legend:

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

    r158 r160  
    3131
    3232#include <giet_config.h>
    33 #include <ctx_handler.h>
    34 #include <sys_handler.h>
    3533#include <drivers.h>
    3634#include <common.h>
     35#include <ctx_handler.h>
     36#include <mapping_info.h>
     37#include <sys_handler.h>
    3738
    3839extern void _task_switch(unsigned int *, unsigned int *);
     
    7172    // return if only one task  */
    7273    if ( tasks <= 1) return;
    73 
     74 
    7475    // compute the task context base address for the current task
    7576    curr_task_id = _scheduler[proc_id].current;
    7677    curr_context = &(_scheduler[proc_id].context[curr_task_id][0]);
    77 
     78   
    7879    // select the next task using a round-robin scheduling policy
    7980    next_task_id = (curr_task_id + 1) % tasks;
Note: See TracChangeset for help on using the changeset viewer.