aboutsummaryrefslogtreecommitdiff
path: root/common/proc.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2023-08-04 20:50:41 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2023-08-04 20:50:41 +0300
commite16f5f81dfb2e97a554ec19b941ec05a7942fd2d (patch)
tree46f0609b5be009d4d1057fa02ece4461732941e0 /common/proc.c
parent5f30284181fcfe5b16dfb94d4fba9a9ed4a2dc6a (diff)
downloadkmi-e16f5f81dfb2e97a554ec19b941ec05a7942fd2d.tar.gz
kmi-e16f5f81dfb2e97a554ec19b941ec05a7942fd2d.zip
add initial smp bringup
Diffstat (limited to 'common/proc.c')
-rw-r--r--common/proc.c6
1 files changed, 6 insertions, 0 deletions
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);