sched: set kernel_task as current task of bootstrap cpu
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user