From e033569910aecb4d8fb437a622e542b8803834ec Mon Sep 17 00:00:00 2001 From: Kimplul Date: Tue, 24 May 2022 21:18:55 +0300 Subject: initial musings about exec --- common/proc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/proc.c') diff --git a/common/proc.c b/common/proc.c index e88d37d..f09e7c1 100644 --- a/common/proc.c +++ b/common/proc.c @@ -45,7 +45,7 @@ stat_t init_proc(void *fdt, struct vmem *b) /* TODO: this stuff should be placed in __sys_exec */ /* the binary gets to choose first what memory regions it requires */ - t->entry = load_elf(t, get_init_base(fdt)); + t->entry = load_elf(t, get_init_base(fdt), 0); if (!t->entry) return ERR_ADDR; -- cgit v1.3