git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' into prog-loader
[lunaix-os.git]
/
lunaix-os
/
includes
/
lunaix
/
ld.h
diff --git
a/lunaix-os/includes/lunaix/ld.h
b/lunaix-os/includes/lunaix/ld.h
index e6732ef116e30fe7ad81fb15566aeddde9434d0b..690f95fb616e87ad9100af753a341aca381a5e67 100644
(file)
--- 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 base;
ptr_t end;
ptr_t mem_sz;
+
+ ptr_t stack_top;
+ ptr_t entry;
};
struct ld_param
};
struct ld_param
@@
-40,6
+43,18
@@
struct usr_exec_param
int
elf_load(struct ld_param* ldparam, struct v_file* elfile);
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
void
ld_create_param(struct ld_param* param, struct proc_info* proc, ptr_t vms);
#endif