wip: scheduler needs to change eip or smth in order to call the fn
This commit is contained in:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user