Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/proc/task.c

    rdd8d5a7 r97d17fe  
    290290}
    291291
    292 #ifdef __32_BITS__
    293 
    294 /** Syscall for reading task ID from userspace (32 bits)
    295  *
    296  * @param uspace_taskid Pointer to user-space buffer
    297  *                      where to store current task ID.
     292/** Syscall for reading task ID from userspace.
     293 *
     294 * @param uspace_task_id Userspace address of 8-byte buffer
     295 *                       where to store current task ID.
    298296 *
    299297 * @return Zero on success or an error code from @ref errno.h.
    300298 *
    301299 */
    302 sysarg_t sys_task_get_id(sysarg64_t *uspace_taskid)
     300unative_t sys_task_get_id(task_id_t *uspace_task_id)
    303301{
    304302        /*
     
    306304         * the lifespan of the task.
    307305         */
    308         return (sysarg_t) copy_to_uspace(uspace_taskid, &TASK->taskid,
     306        return (unative_t) copy_to_uspace(uspace_task_id, &TASK->taskid,
    309307            sizeof(TASK->taskid));
    310308}
    311 
    312 #endif  /* __32_BITS__ */
    313 
    314 #ifdef __64_BITS__
    315 
    316 /** Syscall for reading task ID from userspace (64 bits)
    317  *
    318  * @return Current task ID.
    319  *
    320  */
    321 sysarg_t sys_task_get_id(void)
    322 {
    323         /*
    324          * No need to acquire lock on TASK because taskid remains constant for
    325          * the lifespan of the task.
    326          */
    327         return TASK->taskid;
    328 }
    329 
    330 #endif  /* __64_BITS__ */
    331309
    332310/** Syscall for setting the task name.
     
    340318 *
    341319 */
    342 sysarg_t sys_task_set_name(const char *uspace_name, size_t name_len)
     320unative_t sys_task_set_name(const char *uspace_name, size_t name_len)
    343321{
    344322        int rc;
     
    352330        rc = copy_from_uspace(namebuf, uspace_name, name_len);
    353331        if (rc != 0)
    354                 return (sysarg_t) rc;
     332                return (unative_t) rc;
    355333       
    356334        namebuf[name_len] = '\0';
Note: See TracChangeset for help on using the changeset viewer.