X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/9b8e0c494de6b447b44454112748f702dffec90d..74926d2db1d9f3228acdfca03013a8ba0ac1d8c0:/lunaix-os/includes/lunaix/ld.h?ds=inline diff --git a/lunaix-os/includes/lunaix/ld.h b/lunaix-os/includes/lunaix/ld.h new file mode 100644 index 0000000..88114f5 --- /dev/null +++ b/lunaix-os/includes/lunaix/ld.h @@ -0,0 +1,25 @@ +#ifndef __LUNAIX_LOADER_H +#define __LUNAIX_LOADER_H + +#include +#include + +#define LD_STAT_FKUP 0x1U + +#define MAX_VAR_PAGES 8 + +struct ld_param +{ + struct proc_info* proc; + ptr_t vms_mnt; + struct elf32_ehdr ehdr_out; + int status; +}; + +int +elf_load(struct ld_param* ldparam, struct v_file* elfile); + +void +ld_create_param(struct ld_param* param, struct proc_info* proc, ptr_t vms); + +#endif /* __LUNAIX_LOADER_H */