summaryrefslogtreecommitdiffstats
path: root/sys/kern/init_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/init_main.c')
-rw-r--r--sys/kern/init_main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c
index c6110fa..81cde0d 100644
--- a/sys/kern/init_main.c
+++ b/sys/kern/init_main.c
@@ -285,6 +285,7 @@ proc0_init(void *dummy __unused)
/*
* Create process 0 (the swapper).
*/
+ mtx_init(&p->p_mtx, "process lock", MTX_DEF);
LIST_INSERT_HEAD(&allproc, p, p_list);
p->p_pgrp = &pgrp0;
LIST_INSERT_HEAD(PGRPHASH(0), &pgrp0, pg_hash);
OpenPOWER on IntegriCloud