aboutsummaryrefslogtreecommitdiff
path: root/kernel/proc/sched.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/proc/sched.c')
-rw-r--r--kernel/proc/sched.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/kernel/proc/sched.c b/kernel/proc/sched.c
index c4f1d5a..d0e634f 100644
--- a/kernel/proc/sched.c
+++ b/kernel/proc/sched.c
@@ -270,7 +270,13 @@ void sched_make_runnable(kthread_t *thr)
{
// NOT_YET_IMPLEMENTED("PROCS: sched_make_runnable");
- dbg(DBG_SCHED, "Making thread with proc pid %d runnable\n", thr->kt_proc->p_pid);
+ dbg(DBG_SCHED, "Making thread with proc pid %d runnable\n in thread\n", thr->kt_proc->p_pid);
+ if (curthr == NULL)
+ {
+ dbg(DBG_SCHED, "I did this ^^ with a null thread!\n");
+ } else {
+ dbg(DBG_SCHED, "I did this ^^ with thread %d\n", curthr->kt_proc->p_pid);
+ }
KASSERT(thr != curthr);
KASSERT(thr->kt_state != KT_RUNNABLE);