aboutsummaryrefslogtreecommitdiff
path: root/common/proc.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2022-10-21 17:43:31 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2022-10-21 17:43:31 +0300
commitec989bbe7d9bb7a844eeddeceaeb7bb7e4d5dab6 (patch)
tree51221980ad2d4c8701e1a6e762a47495dec289de /common/proc.c
parenta06dbb8a63d825ebb1ad65372ce1ce1f572891bc (diff)
downloadkmi-ec989bbe7d9bb7a844eeddeceaeb7bb7e4d5dab6.tar.gz
kmi-ec989bbe7d9bb7a844eeddeceaeb7bb7e4d5dab6.zip
initial implementation of swap
+ Slightly unsure if it should be a syscall, or if assign would be enough. Also, which thread should run in a fork/spawn? For now, old thread, though this might increase latency. Or add swap flag to these calls?
Diffstat (limited to 'common/proc.c')
-rw-r--r--common/proc.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/common/proc.c b/common/proc.c
index 6a3bedf..946078b 100644
--- a/common/proc.c
+++ b/common/proc.c
@@ -37,9 +37,7 @@ stat_t init_proc(void *fdt)
return ERR_OOMEM;
/* set current tcb */
- cpu_assign(t);
use_tcb(t);
- use_vmem(t->proc.vmem);
/* allocate stacks after ELF file to make sure nothing of importance
* clashes */