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
refactor: organize all arch related files together.
[lunaix-os.git]
/
lunaix-os
/
includes
/
lunaix
/
exec.h
diff --git
a/lunaix-os/includes/lunaix/exec.h
b/lunaix-os/includes/lunaix/exec.h
index 00f4d398b42fef007760b3257857e9e5a5fc4b6b..f872271bb649a6667300bc9cfac0be490953b93a 100644
(file)
--- a/
lunaix-os/includes/lunaix/exec.h
+++ b/
lunaix-os/includes/lunaix/exec.h
@@
-1,14
+1,10
@@
#ifndef __LUNAIX_EXEC_H
#define __LUNAIX_EXEC_H
#ifndef __LUNAIX_EXEC_H
#define __LUNAIX_EXEC_H
-#include <lunaix/elf.h>
#include <lunaix/fs.h>
#include <lunaix/process.h>
#include <lunaix/types.h>
#include <lunaix/fs.h>
#include <lunaix/process.h>
#include <lunaix/types.h>
-#define NO_LOADER 0
-#define DEFAULT_LOADER "usr/ld"
-
#define MAX_VAR_PAGES 8
#define DEFAULT_HEAP_PAGES 16
#define MAX_VAR_PAGES 8
#define DEFAULT_HEAP_PAGES 16
@@
-29,10
+25,14
@@
struct exec_container
struct proc_info* proc;
ptr_t vms_mnt;
struct proc_info* proc;
ptr_t vms_mnt;
- struct load_context executable;
+ struct load_context exe;
+
+ // argv prependums
+ const char* argv_pp[2];
+ const char** argv;
+ const char** envp;
ptr_t stack_top;
ptr_t stack_top;
- ptr_t entry; // mapped to one of {executable|loader}.entry
int status;
};
int status;
};
@@
-48,19
+48,13
@@
struct uexec_param
#ifndef __USR_WRAPPER__
int
#ifndef __USR_WRAPPER__
int
-exec_load_byname(struct exec_container* container,
- const char* filename,
- const char** argv,
- const char** envp);
+exec_load_byname(struct exec_container* container, const char* filename);
int
int
-exec_load(struct exec_container* container,
- struct v_file* executable,
- const char** argv,
- const char** envp);
+exec_load(struct exec_container* container, struct v_file* executable);
int
int
-exec_kexecve(const char* filename, const char* argv[], const char* envp);
+exec_kexecve(const char* filename, const char* argv[], const char* envp
[]
);
#endif
#endif