88114f5fab6679e16ff3397898cc6f7d5fd48a80
[lunaix-os.git] / lunaix-os / includes / lunaix / ld.h
1 #ifndef __LUNAIX_LOADER_H
2 #define __LUNAIX_LOADER_H
3
4 #include <lunaix/process.h>
5 #include <lunaix/types.h>
6
7 #define LD_STAT_FKUP 0x1U
8
9 #define MAX_VAR_PAGES 8
10
11 struct ld_param
12 {
13     struct proc_info* proc;
14     ptr_t vms_mnt;
15     struct elf32_ehdr ehdr_out;
16     int status;
17 };
18
19 int
20 elf_load(struct ld_param* ldparam, struct v_file* elfile);
21
22 void
23 ld_create_param(struct ld_param* param, struct proc_info* proc, ptr_t vms);
24
25 #endif /* __LUNAIX_LOADER_H */