From 7bf14b65ed6523a9df571bceb74af7815c4118e0 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Wed, 25 Oct 2017 00:38:02 +0100 Subject: [PATCH] start: tiny optimization --- Kernel/start.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/start.c b/Kernel/start.c index 9787e1c9..8a5b2517 100644 --- a/Kernel/start.c +++ b/Kernel/start.c @@ -109,9 +109,9 @@ void complete_init(void) /* Terminate argv, also use this as the env ptr */ uputp(0, (void *)argptr); /* Set up things to look like the process is calling _execve() */ + udata.u_argn2 = (arg_t)argptr; /* Environment (none) */ udata.u_argn = (arg_t)PROGLOAD + 2048; /* "/init" */ udata.u_argn1 = (arg_t)PROGLOAD; /* Arguments */ - udata.u_argn2 = (arg_t)argptr; /* Environment (none) */ #ifdef CONFIG_LEVEL_2 init_process->p_session = 1; -- 2.34.1