mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Allow static hints to override kenv.
This commit is contained in:
parent
27f38446be
commit
db494010a3
1 changed files with 5 additions and 0 deletions
|
|
@ -480,6 +480,11 @@ initarm(void *arg, void *arg2)
|
|||
init_param1();
|
||||
init_param2(physmem);
|
||||
kdb_init();
|
||||
|
||||
/* use static kernel environment if so configured */
|
||||
if (envmode == 1)
|
||||
kern_envp = static_env;
|
||||
|
||||
return ((void *)(kernelstack.pv_va + USPACE_SVC_STACK_TOP -
|
||||
sizeof(struct pcb)));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue