Ignore:
Timestamp:
Jul 9, 2013, 3:54:53 PM (11 years ago)
Author:
meunier
Message:

Cosmétique + gestion du reset de l'irq du timer ou de l'xicu lors d'un task_switch

File:
1 edited

Legend:

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

    r238 r246  
    105105        unsigned int* curr_ctx_vaddr = &(psched->context[curr_task_id][0]);
    106106        unsigned int* next_ctx_vaddr = &(psched->context[next_task_id][0]);
     107        unsigned int procid = _procid();
     108        unsigned int local_id = procid % NB_PROCS_MAX;
     109        unsigned int cluster_id = procid / NB_PROCS_MAX;
    107110
    108111        // set current task index
    109112        psched->current = next_task_id;
    110113
    111         //_timer_reset_irq_cpt(cluster_id, local_id);
    112         // commented until not properly supported in soclib
    113         // (the function is not yet present in drivers.c)
     114        _timer_reset_irq_cpt(cluster_id, local_id);
    114115
    115116        _task_switch(curr_ctx_vaddr, next_ctx_vaddr);
Note: See TracChangeset for help on using the changeset viewer.