From 3a315901ba8856e4b2a37d8c5adb68fa2aa43a63 Mon Sep 17 00:00:00 2001 From: Max Wash Date: Wed, 3 May 2023 20:19:11 +0100 Subject: [PATCH] sched: fix create_idle_thread() not initialising tr_parent --- sched/thread.c | 1 + 1 file changed, 1 insertion(+) 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();