add: kernel task

This commit is contained in:
2025-01-20 15:11:22 +01:00
parent b3be29246e
commit d889a251ef
5 changed files with 34 additions and 21 deletions

View File

@ -1,3 +1,4 @@
#include "debug.h"
#include "kprintf.h"
#include "task.h"
#include "time.h"
@ -6,11 +7,9 @@ struct task *current_task;
void scheduler(void)
{
kprintf("camille mon bebou\n");
sleep(1000);
if (!current_task)
return;
struct task *it = current_task;
struct task *it = current_task->next;
while (it->status != RUN)
it = it->next;
switch_to_task(it);