Subversion Repositories HelenOS

Rev

Rev 4153 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4153 Rev 4263
Line 107... Line 107...
107
    uarg->uspace_thread_function = function;
107
    uarg->uspace_thread_function = function;
108
    uarg->uspace_thread_arg = arg;
108
    uarg->uspace_thread_arg = arg;
109
    uarg->uspace_uarg = uarg;
109
    uarg->uspace_uarg = uarg;
110
   
110
   
111
    rc = __SYSCALL4(SYS_THREAD_CREATE, (sysarg_t) uarg, (sysarg_t) name,
111
    rc = __SYSCALL4(SYS_THREAD_CREATE, (sysarg_t) uarg, (sysarg_t) name,
112
        (sysarg_t) strlen(name), (sysarg_t) tid);
112
        (sysarg_t) str_size(name), (sysarg_t) tid);
113
   
113
   
114
    if (rc) {
114
    if (rc) {
115
        /*
115
        /*
116
         * Failed to create a new thread.
116
         * Failed to create a new thread.
117
         * Free up the allocated structures.
117
         * Free up the allocated structures.