mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 20:58:22 +00:00
elf: add AT_EXECFN
This commit is contained in:
@@ -361,7 +361,7 @@ void proc_run_init() {
|
||||
char *argv[] = {"/init", cmdline_get("initarg"), NULL};
|
||||
char *envp[] = {NULL};
|
||||
|
||||
void *stack = elf_preparestack(STACK_TOP, &auxv64, argv, envp);
|
||||
void *stack = elf_preparestack(STACK_TOP, &auxv64, argv, envp, "/init");
|
||||
__assert(stack);
|
||||
|
||||
// reenter kernel context
|
||||
|
||||
Reference in New Issue
Block a user