diff options
Diffstat (limited to 'src/kernel/tasks/process.c')
-rw-r--r-- | src/kernel/tasks/process.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) |