wip: scheduler needs to change eip or smth in order to call the fn

This commit is contained in:
2025-01-17 12:56:05 +01:00
parent b9691b1948
commit fa3ef311ad
9 changed files with 95 additions and 14 deletions

View File

@ -1,10 +1,14 @@
#include "kprintf.h"
#include "task.h"
struct task *current_task;
void scheduler(void)
{
struct task *it = current_task->next;
kprintf("camille mon bebou\n");
if (!current_task)
return;
struct task *it = current_task;
while (it->status != RUN)
it = it->next;
switch_to_task(it);