diff options
author | sotech117 <michael_foiani@brown.edu> | 2024-03-03 02:00:59 +0000 |
---|---|---|
committer | sotech117 <michael_foiani@brown.edu> | 2024-03-03 02:00:59 +0000 |
commit | e8970e39cac119369177e32723c75ea585a94587 (patch) | |
tree | ed9513f584a5fad4e982791c3cd02c145f749e54 /kernel/proc/sched.c | |
parent | 8c2e0ce946012a4275e8dfa9d8dfd1d5a68d6e3e (diff) |
get text output to be displayed
Diffstat (limited to 'kernel/proc/sched.c')
-rw-r--r-- | kernel/proc/sched.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/kernel/proc/sched.c b/kernel/proc/sched.c index c8f209c..91264fa 100644 --- a/kernel/proc/sched.c +++ b/kernel/proc/sched.c @@ -333,8 +333,12 @@ void sched_wakeup_on(ktqueue_t *q, kthread_t **ktp) { // NOT_YET_IMPLEMENTED("PROCS: sched_wakeup_on"); - if (sched_queue_empty(q)) + if (sched_queue_empty(q) || q == NULL) { + if (ktp) + { + *ktp = NULL; + } return; } @@ -344,6 +348,7 @@ void sched_wakeup_on(ktqueue_t *q, kthread_t **ktp) { *ktp = thr; } + sched_make_runnable(thr); intr_setipl(oldIPL); } |