diff --git a/sched/thread.c b/sched/thread.c index a293198..4786030 100644 --- a/sched/thread.c +++ b/sched/thread.c @@ -77,6 +77,7 @@ struct thread *create_idle_thread(void) struct thread *thr = thread_alloc(); + thr->tr_parent = idle; thr->tr_prio = PRIO_NORMAL; thr->tr_state = THREAD_READY; thr->tr_quantum_target = default_quantum();