diff options
Diffstat (limited to 'sys/kern/init_main.c')
-rw-r--r-- | sys/kern/init_main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c index 797319f..6b3e09b 100644 --- a/sys/kern/init_main.c +++ b/sys/kern/init_main.c @@ -44,10 +44,11 @@ #include <vm/vm.h> #include <string.h> +#define _START_PATH "/usr/sbin/init" #if defined(_INSTALL_MEDIA) -#define _START_PATH "/usr/sbin/install" +#define _START_ARG "/usr/sbin/install" #else -#define _START_PATH "/usr/sbin/init" +#define _START_ARG NULL #endif /* _INSTALL_MEDIA */ struct proc g_proc0; @@ -64,7 +65,7 @@ start_init(void) { struct proc *td = this_td(); struct execve_args execve_args; - char *argv[] = { _START_PATH, NULL, NULL }; + char *argv[] = { _START_PATH, _START_ARG, NULL }; char *envp[] = { NULL }; kprintf("starting init...\n"); @@ -127,7 +128,6 @@ main(void) * and here we go! */ mp_bootstrap_aps(&g_bsp_ci); - DRIVERS_SCHED(); sched_enter(); __builtin_unreachable(); } |