summaryrefslogtreecommitdiff
path: root/sys/kern/kern_fork.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/kern_fork.c')
-rw-r--r--sys/kern/kern_fork.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c
index 64e0caf..ce5f3a6 100644
--- a/sys/kern/kern_fork.c
+++ b/sys/kern/kern_fork.c
@@ -54,13 +54,7 @@ fork1(struct proc *cur, int flags, void(*ip)(void), struct proc **newprocp)
if (newproc == NULL)
return -ENOMEM;
- /*
- * We want to zero the proc to ensure it is in known
- * state. We then want to initialize machine dependent
- * fields.
- */
- memset(newproc, 0, sizeof(*newproc));
- status = md_td_init(newproc, cur, (uintptr_t)ip);
+ status = md_fork(newproc, cur, (uintptr_t)ip);
if (status != 0)
goto done;