From 8b36a39774789cee66d84db9f0086af15cacc211 Mon Sep 17 00:00:00 2001 From: Christian Cunningham Date: Fri, 26 Aug 2022 22:31:52 -0700 Subject: No used mutex queue --- kernel/sys/schedule.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'kernel/sys/schedule.c') diff --git a/kernel/sys/schedule.c b/kernel/sys/schedule.c index 3157c5d..142ffaf 100644 --- a/kernel/sys/schedule.c +++ b/kernel/sys/schedule.c @@ -21,6 +21,7 @@ void init_scheduler(void) usrloopthread.old_priority = -1; usrloopthread.status = THREAD_READY; usrloopthread.offset = -1; + usrloopthread.highest_mutex = 0; scheduler.rthread = &usrloopthread; // Initialize Scheduling Queues @@ -56,6 +57,7 @@ void init_scheduler(void) struct Thread* t = &threads[i]; t->offset = i; t->sp_base = 0x20000000 - STACK_SIZE*i; + t->highest_mutex = 0; thread_entries[i].value = t; thread_entries[i].next = &thread_entries[(i+1)]; thread_entries[i].entry_type = VALUE_ENTRY; -- cgit v1.2.1