fix: a bunch of stuff related to multitasking

This commit is contained in:
2025-01-23 14:12:38 +01:00
parent 2ba4037af2
commit 2d6b24842e
6 changed files with 15 additions and 12 deletions

View File

@ -10,7 +10,7 @@ void scheduler(void)
if (!current_task)
return;
struct task *it = current_task->next;
while (it->status != RUN)
while (it && it->status != RUN)
it = it->next;
switch_to_task(it);
}