sched: fix create_idle_thread() not initialising tr_parent
This commit is contained in:
@@ -77,6 +77,7 @@ struct thread *create_idle_thread(void)
|
|||||||
|
|
||||||
struct thread *thr = thread_alloc();
|
struct thread *thr = thread_alloc();
|
||||||
|
|
||||||
|
thr->tr_parent = idle;
|
||||||
thr->tr_prio = PRIO_NORMAL;
|
thr->tr_prio = PRIO_NORMAL;
|
||||||
thr->tr_state = THREAD_READY;
|
thr->tr_state = THREAD_READY;
|
||||||
thr->tr_quantum_target = default_quantum();
|
thr->tr_quantum_target = default_quantum();
|
||||||
|
|||||||
Reference in New Issue
Block a user