Changeset 232 for soft/giet_vm/sys/common.c
- Timestamp:
- Mar 5, 2013, 4:00:09 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/sys/common.c
r231 r232 375 375 376 376 //////////////////////////////////////////////////////////////////////////// 377 // _get_ current_task_id()377 // _get_proc_task_id() 378 378 // This function returns the index of the currently running task. 379 379 //////////////////////////////////////////////////////////////////////////// 380 unsigned int _get_ current_task_id() {380 unsigned int _get_proc_task_id() { 381 381 static_scheduler_t * psched = (static_scheduler_t *) _get_sched(); 382 382 return _physical_read_access(&(psched->current)); … … 385 385 386 386 //////////////////////////////////////////////////////////////////////////// 387 // _set_ current_task_id()387 // _set_proc_task_id() 388 388 // This function returns the index of the currently running task. 389 389 //////////////////////////////////////////////////////////////////////////// 390 void _set_ current_task_id(unsigned int value) {390 void _set_proc_task_id(unsigned int value) { 391 391 static_scheduler_t * psched = (static_scheduler_t *) _get_sched(); 392 392 _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 //////////////////////////////////////////////////////////////////////////// 400 unsigned int _get_global_task_id() { 401 return _get_context_slot(_get_proc_task_id(), CTX_GTID_ID); 393 402 } 394 403
Note: See TracChangeset
for help on using the changeset viewer.