aboutsummaryrefslogtreecommitdiff
path: root/common/proc.c
diff options
context:
space:
mode:
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);