Rev 3386 | Rev 4263 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3386 | Rev 4153 | ||
---|---|---|---|
Line 106... | Line 106... | ||
106 | uarg->uspace_stack = (void *) stack; |
106 | uarg->uspace_stack = (void *) stack; |
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 = __SYSCALL3(SYS_THREAD_CREATE, (sysarg_t) uarg, (sysarg_t) name, |
111 | rc = __SYSCALL4(SYS_THREAD_CREATE, (sysarg_t) uarg, (sysarg_t) name, |
112 | (sysarg_t) tid); |
112 | (sysarg_t) strlen(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. |