diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-11-10 15:14:10 +0200 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-11-10 15:14:10 +0200 |
| commit | 9edd65c48ee75751327c6ee6d42a7009e726d667 (patch) | |
| tree | eb46862f518b70c059c6dc36968f7a2ddc373966 /common/tcb.c | |
| parent | 87a6be8bc3404abea2af788c46cf450dc8bb6204 (diff) | |
| download | kmi-9edd65c48ee75751327c6ee6d42a7009e726d667.tar.gz kmi-9edd65c48ee75751327c6ee6d42a7009e726d667.zip | |
initial implementation of process copying
+ Not actually working (at least fully), need to continue debugging when
I have time.
Diffstat (limited to 'common/tcb.c')
| -rw-r--r-- | common/tcb.c | 8 |
1 files changed, 4 insertions, 4 deletions
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) |
