aboutsummaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-06-23 22:41:38 -0400
committerIan Moffett <ian@osmora.org>2024-06-23 22:41:38 -0400
commit6f6a36d1e8b3dd50cb4d394fa1de4888663b4ea5 (patch)
treea14c3ea6feb7d1b783364737fcefabce249473ff /sys/kern
parent9728334b0fbbcb3f13ea9a72918edf050c9d5560 (diff)
kernel: Init proc0
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/init_main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c
index 09b8d2d..df955ee 100644
--- a/sys/kern/init_main.c
+++ b/sys/kern/init_main.c
@@ -31,11 +31,14 @@
#include <sys/syslog.h>
#include <sys/sched.h>
#include <sys/mount.h>
+#include <sys/proc.h>
#include <dev/cons/cons.h>
#include <dev/acpi/acpi.h>
#include <machine/cpu.h>
#include <vm/vm.h>
+static struct proc proc0;
+
int
main(void)
{
@@ -53,6 +56,9 @@ main(void)
/* Startup the BSP */
cpu_startup(&g_bsp_ci);
+ /* Init process 0 */
+ md_td_init(&proc0, NULL, 0);
+
/* Init the virtual file system */
vfs_init();