add: kernel task
This commit is contained in:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user