From: Alan Cox Date: Tue, 24 Oct 2017 23:38:02 +0000 (+0100) Subject: start: tiny optimization X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=7bf14b65ed6523a9df571bceb74af7815c4118e0;p=FUZIX.git start: tiny optimization --- 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;