wip: TSS added to the gdt and start to implement scheduler

This commit is contained in:
2025-01-13 15:46:09 +01:00
parent 916e8b6f19
commit b9691b1948
9 changed files with 156 additions and 8 deletions

View File

@ -0,0 +1,11 @@
#include "task.h"
struct task *current_task;
void scheduler(void)
{
struct task *it = current_task->next;
while (it->status != RUN)
it = it->next;
switch_to_task(it);
}