diff options
author | Marvin Borner | 2020-04-28 18:32:36 +0200 |
---|---|---|
committer | Marvin Borner | 2020-04-28 18:32:36 +0200 |
commit | 4b8518b4e791c68154ec52badcc921b62afafb49 (patch) | |
tree | 9c855266cf7451f503bf3cb849e63ac72ae48e74 /src/kernel/tasks/process.c | |
parent | 46007d2598b7aef13895b21669cfb6f24272e5fe (diff) |
Maaaany fixes...
Sorry for the increasingly worse-getting commit messages :D
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) |