From 4b8518b4e791c68154ec52badcc921b62afafb49 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Tue, 28 Apr 2020 18:32:36 +0200 Subject: Maaaany fixes... Sorry for the increasingly worse-getting commit messages :D --- src/kernel/tasks/process.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/kernel/tasks/process.c') diff --git a/src/kernel/tasks/process.c b/src/kernel/tasks/process.c index 5ac4010..123d2d7 100644 --- a/src/kernel/tasks/process.c +++ b/src/kernel/tasks/process.c @@ -21,8 +21,6 @@ void scheduler(struct regs *regs) { memcpy(¤t_proc->registers, regs, sizeof(struct regs)); - debug("Task switch"); - timer_handler(regs); current_proc = current_proc->next; @@ -30,6 +28,8 @@ void scheduler(struct regs *regs) current_proc = root; } + debug("Task switch to %s", current_proc->name); + while (current_proc->state == PROC_ASLEEP) { current_proc = current_proc->next; if (current_proc == NULL) -- cgit v1.2.3