aboutsummaryrefslogtreecommitdiff
path: root/src/sys
diff options
context:
space:
mode:
Diffstat (limited to 'src/sys')
-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);
}
}