From 9edd65c48ee75751327c6ee6d42a7009e726d667 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Thu, 10 Nov 2022 15:14:10 +0200 Subject: initial implementation of process copying + Not actually working (at least fully), need to continue debugging when I have time. --- common/tcb.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'common/tcb.c') diff --git a/common/tcb.c b/common/tcb.c index 417ca45..5f0e97b 100644 --- a/common/tcb.c +++ b/common/tcb.c @@ -172,14 +172,14 @@ struct tcb *create_thread(struct tcb *p) /** * Copy process. * - * @param p Parent process. * @param n New process. + * @param p Parent process. * @return \ref OK. */ -static stat_t __copy_proc(struct tcb *p, struct tcb *n) +static stat_t __copy_proc(struct tcb *n, struct tcb *p) { - /** \todo Copy memory regions as well as copy */ - return OK; + /* execution continuation? */ + return clone_mem_regions(n, p); } struct tcb *create_proc(struct tcb *p) -- cgit v1.3