/kernel/trunk/generic/src/synch/waitq.c |
---|
190,6 → 190,7 |
/* |
* Short emulation of scheduler() return code. |
*/ |
before_thread_runs(); |
spinlock_unlock(&THREAD->lock); |
interrupts_restore(ipl); |
return ESYNCH_TIMEOUT; |
/kernel/trunk/generic/src/proc/thread.c |
---|
85,6 → 85,8 |
void *arg = THREAD->thread_arg; |
/* this is where each thread wakes up after its creation */ |
before_thread_runs(); |
spinlock_unlock(&THREAD->lock); |
interrupts_enable(); |
435,7 → 437,7 |
{ |
thread_t *t; |
char namebuf[THREAD_NAME_BUFLEN]; |
uspace_arg_t *kernel_uarg; |
uspace_arg_t *kernel_uarg; /* TODO: store kernel_uarg in thread_t */ |
__u32 tid; |
copy_from_uspace(namebuf, uspace_name, THREAD_NAME_BUFLEN); |