From 6f6a36d1e8b3dd50cb4d394fa1de4888663b4ea5 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sun, 23 Jun 2024 22:41:38 -0400 Subject: kernel: Init proc0 Signed-off-by: Ian Moffett --- sys/kern/init_main.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sys/kern') 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 #include #include +#include #include #include #include #include +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(); -- cgit v1.2.3