diff options
-rw-r--r-- | sys/kern/init_main.c | 6 |
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(); |