From e16f5f81dfb2e97a554ec19b941ec05a7942fd2d Mon Sep 17 00:00:00 2001 From: Kimplul Date: Fri, 4 Aug 2023 20:50:41 +0300 Subject: add initial smp bringup --- common/proc.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'common/proc.c') diff --git a/common/proc.c b/common/proc.c index 0f0c7f8..e6c2769 100644 --- a/common/proc.c +++ b/common/proc.c @@ -36,6 +36,12 @@ stat_t init_proc(void *fdt) if (!t) return ERR_OOMEM; + /* we're the first cpu, so we always have ID 0 */ + t->cpu_id = 0; + + /* force tcb for core */ + tcb_assign(t); + /* set current tcb */ use_tcb(t); -- cgit v1.3