aboutsummaryrefslogtreecommitdiff
path: root/common/tcb.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/tcb.c')
-rw-r--r--common/tcb.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/tcb.c b/common/tcb.c
index f618cd6..42e634d 100644
--- a/common/tcb.c
+++ b/common/tcb.c
@@ -305,9 +305,13 @@ struct tcb *cur_proc()
void use_tcb(struct tcb *t)
{
+ cpu_assign(t);
+
id_t cpu = cpu_id();
t->cpu_id = cpu;
cpu_tcb[cpu] = t;
+
+ use_vmem(t->proc.vmem);
}
struct tcb *get_tcb(id_t tid)