aboutsummaryrefslogtreecommitdiff
path: root/src/sys/schedule.c
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-03-18 13:21:06 -0700
committerChristian Cunningham <cc@localhost>2022-03-18 13:21:06 -0700
commit74f95c5696335b02d768815fea2940bf089d057f (patch)
tree67910ed837cab2ccd59507b94b0dc204d3279fa4 /src/sys/schedule.c
parent94f2b0b8f48f5715975446c637a078008fb7e941 (diff)
Fixed Mutex Locking bug
Diffstat (limited to 'src/sys/schedule.c')
-rw-r--r--src/sys/schedule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sys/schedule.c b/src/sys/schedule.c
index 748f7ed..4f8feff 100644
--- a/src/sys/schedule.c
+++ b/src/sys/schedule.c
@@ -454,8 +454,8 @@ void sched_mutex_resurrect(void* m)
// Restore the original priority level
if (op != 0xFF) {
struct Entry* tentry = pop_thread_from_queue(THREAD_READY, p);
- ((struct Thread*)entry->value)->priority = op;
- ((struct Thread*)entry->value)->old_priority = 0xFF;
+ ((struct Thread*)tentry->value)->priority = op;
+ ((struct Thread*)tentry->value)->old_priority = 0xFF;
prepend_thread_to_queue(tentry->value, THREAD_READY, op);
}
}