sched: set kernel_task as current task of bootstrap cpu

This commit is contained in:
2023-03-18 19:35:23 +00:00
parent 57eaf4e01c
commit 4785c767e4
3 changed files with 30 additions and 14 deletions

View File

@@ -1,4 +1,8 @@
#include <socks/sched.h>
#include <socks/percpu.h>
DEFINE_PERCPU_VAR(runqueue_t, rq);
void runqueue_init(runqueue_t *rq)
{
memset(rq, 0x00, sizeof *rq);
rq->rq_lock = SPIN_LOCK_INIT;
}