aboutsummaryrefslogtreecommitdiff
path: root/kernel/sys
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-08-26 22:31:52 -0700
committerChristian Cunningham <cc@localhost>2022-08-26 22:31:52 -0700
commit8b36a39774789cee66d84db9f0086af15cacc211 (patch)
treeaa0345e480b796623fc5a20de6e519a4fce0395b /kernel/sys
parente36b9514b79c3f67c42c41fada2e46a5ecc3fa05 (diff)
No used mutex queue
Diffstat (limited to 'kernel/sys')
-rw-r--r--kernel/sys/schedule.c2
1 files changed, 2 insertions, 0 deletions
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;