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, 1 insertions, 3 deletions
diff --git a/common/tcb.c b/common/tcb.c
index 42e634d..675aa1f 100644
--- a/common/tcb.c
+++ b/common/tcb.c
@@ -307,9 +307,7 @@ void use_tcb(struct tcb *t)
{
cpu_assign(t);
- id_t cpu = cpu_id();
- t->cpu_id = cpu;
- cpu_tcb[cpu] = t;
+ cpu_tcb[t->cpu_id] = t;
use_vmem(t->proc.vmem);
}