Fix exit not looping around to head task
This commit is contained in:
parent
f914554dbc
commit
d874b17b14
@ -163,6 +163,9 @@ void tasking_exit(uint8_t code) {
|
||||
headTask=currentTask->next;
|
||||
}
|
||||
Task* task=currentTask->next;
|
||||
if (task==NULL) {
|
||||
task=headTask;
|
||||
}
|
||||
kfree(currentTask);
|
||||
serial_printf("Exit yielding to PID %d.\n",task->pid);
|
||||
load_smap(task->cr3);
|
||||
|
Loading…
x
Reference in New Issue
Block a user