From ec989bbe7d9bb7a844eeddeceaeb7bb7e4d5dab6 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Fri, 21 Oct 2022 17:43:31 +0300 Subject: 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? --- common/proc.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'common/proc.c') 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 */ -- cgit v1.3