public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2daeaa5
)
start: tiny optimization
author
Alan Cox
<alan@linux.intel.com>
Tue, 24 Oct 2017 23:38:02 +0000
(
00:38
+0100)
committer
Alan Cox
<alan@linux.intel.com>
Tue, 24 Oct 2017 23:38:02 +0000
(
00:38
+0100)
Kernel/start.c
patch
|
blob
|
history
diff --git
a/Kernel/start.c
b/Kernel/start.c
index
9787e1c
..
8a5b251
100644
(file)
--- 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;