From 4f4d9fdc89c27aa3346467a24b621954f4564d3b Mon Sep 17 00:00:00 2001 From: Kimplul Date: Wed, 29 Dec 2021 23:23:36 +0200 Subject: Refactoring + Mainly just moving stuff out or arch/riscv/ that should be handled in common/ + Prepared separate process stack/call stack for server callbacks, rest to be implemeted soon ish --- common/elf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'common/elf.c') diff --git a/common/elf.c b/common/elf.c index fafef00..aab00d1 100644 --- a/common/elf.c +++ b/common/elf.c @@ -72,9 +72,9 @@ static vm_t __prepare_proc(struct tcb *t, uint8_t ei_c, vm_t elf) } /* sets up all memory regions etc, returns the entry address */ -vm_t prepare_proc(struct tcb *t, vm_t p) +vm_t load_elf(struct tcb *t, vm_t b) { - struct elf_ident *i = (struct elf_ident *)p; + struct elf_ident *i = (struct elf_ident *)b; if(i->ei_magic != cpu_to_be32(EI_MAGIC)) return 0; @@ -82,5 +82,5 @@ vm_t prepare_proc(struct tcb *t, vm_t p) return 0; /* more sanity checks? */ - return __prepare_proc(t, i->ei_class, p); + return __prepare_proc(t, i->ei_class, b); } -- cgit v1.3