diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2021-12-29 23:23:36 +0200 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2021-12-29 23:53:06 +0200 |
| commit | 4f4d9fdc89c27aa3346467a24b621954f4564d3b (patch) | |
| tree | c4ba4fb583a43b8fb27730b4cdb9b4b1395da91c /common/elf.c | |
| parent | 4e5595a089c815febd7a0d42ab62940bf13f73ac (diff) | |
| download | kmi-4f4d9fdc89c27aa3346467a24b621954f4564d3b.tar.gz kmi-4f4d9fdc89c27aa3346467a24b621954f4564d3b.zip | |
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
Diffstat (limited to 'common/elf.c')
| -rw-r--r-- | common/elf.c | 6 |
1 files changed, 3 insertions, 3 deletions
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); } |
