diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-10-21 21:34:18 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-10-21 21:34:18 +0300 |
| commit | dd7c04a39bd88da8e381bb88078c41b049a6665c (patch) | |
| tree | f5210700cc1789547ae55926c7f9aaa753fbb791 /common/tcb.c | |
| parent | ec989bbe7d9bb7a844eeddeceaeb7bb7e4d5dab6 (diff) | |
| download | kmi-dd7c04a39bd88da8e381bb88078c41b049a6665c.tar.gz kmi-dd7c04a39bd88da8e381bb88078c41b049a6665c.zip | |
beautification
Diffstat (limited to 'common/tcb.c')
| -rw-r--r-- | common/tcb.c | 4 |
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); } |
