fix: infinite loop when scheduler call before create_kernel_task

This commit is contained in:
Starnakin 2025-01-30 14:04:15 +01:00
parent c9a92819b4
commit 18486a6705

View File

@ -11,9 +11,9 @@ struct task *current_task;
void scheduler(void)
{
cli();
if (!current_task) // || current_task->next == current_task)
return;
cli();
struct task *it = current_task->next;
while (it && it->status != RUN) {
if (it->status == STOPPED || it->status == ZOMBIE) {