Ignore:
Timestamp:
Mar 5, 2013, 4:00:09 PM (11 years ago)
Author:
meunier
Message:

Ajout du malloc dans le Giet.

File:
1 edited

Legend:

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

    r231 r232  
    375375
    376376////////////////////////////////////////////////////////////////////////////
    377 //    _get_current_task_id()
     377//    _get_proc_task_id()
    378378// This function returns the index of the currently running task.
    379379////////////////////////////////////////////////////////////////////////////
    380 unsigned int _get_current_task_id() {
     380unsigned int _get_proc_task_id() {
    381381    static_scheduler_t * psched = (static_scheduler_t *) _get_sched();
    382382    return _physical_read_access(&(psched->current));
     
    385385
    386386////////////////////////////////////////////////////////////////////////////
    387 //    _set_current_task_id()
     387//    _set_proc_task_id()
    388388// This function returns the index of the currently running task.
    389389////////////////////////////////////////////////////////////////////////////
    390 void _set_current_task_id(unsigned int value) {
     390void _set_proc_task_id(unsigned int value) {
    391391    static_scheduler_t * psched = (static_scheduler_t *) _get_sched();
    392392    _physical_write_access(&(psched->current), value);
     393}
     394
     395
     396////////////////////////////////////////////////////////////////////////////
     397//    _get_global_task_id()
     398// This function returns the global index of the running task.
     399////////////////////////////////////////////////////////////////////////////
     400unsigned int _get_global_task_id() {
     401  return _get_context_slot(_get_proc_task_id(), CTX_GTID_ID);
    393402}
    394403
Note: See TracChangeset for help on using the changeset viewer.