aboutsummaryrefslogtreecommitdiff
path: root/common/tcb.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/tcb.c')
-rw-r--r--common/tcb.c8
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)