X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/c316c28e6c8a165111d6bbc208555f5c53489818..707c6653985f55463e8a59a58b248ba8af3b44b2:/lunaix-os/includes/lunaix/ld.h diff --git a/lunaix-os/includes/lunaix/ld.h b/lunaix-os/includes/lunaix/ld.h index e6732ef..690f95f 100644 --- a/lunaix-os/includes/lunaix/ld.h +++ b/lunaix-os/includes/lunaix/ld.h @@ -16,6 +16,9 @@ struct ld_info ptr_t base; ptr_t end; ptr_t mem_sz; + + ptr_t stack_top; + ptr_t entry; }; struct ld_param @@ -40,6 +43,18 @@ struct usr_exec_param int elf_load(struct ld_param* ldparam, struct v_file* elfile); +int +exec_load_byname(struct ld_param* param, + const char* filename, + const char** argv, + const char** envp); + +int +exec_load(struct ld_param* param, + struct v_file* executable, + const char** argv, + const char** envp); + void ld_create_param(struct ld_param* param, struct proc_info* proc, ptr_t vms); #endif