/kernel/trunk/generic/src/proc/task.c |
---|
155,6 → 155,23 |
return task; |
} |
/** Syscall for reading task ID from userspace. |
* |
* @param uaddr Userspace address of 8-byte buffer where to store current task ID. |
* |
* @return Always returns 0. |
*/ |
__native sys_get_task_id(task_id_t *uspace_task_id) |
{ |
/* |
* No need to acquire lock on TASK because taskid |
* remains constant for the lifespan of the task. |
*/ |
copy_to_uspace(uspace_task_id, &TASK->taskid, sizeof(TASK->taskid)); |
return 0; |
} |
/** Print task list */ |
void task_print_list(void) |
{ |
/kernel/trunk/generic/src/syscall/syscall.c |
---|
82,6 → 82,7 |
sys_futex_wakeup, |
sys_mmap, |
sys_mremap, |
sys_get_task_id, |
sys_ipc_call_sync_fast, |
sys_ipc_call_sync, |
sys_ipc_call_async_fast, |