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: use a more decent physical memory map
[lunaix-os.git]
/
lunaix-os
/
kernel
/
exe
/
exec.c
diff --git
a/lunaix-os/kernel/exe/exec.c
b/lunaix-os/kernel/exe/exec.c
index df47bb75a11ffde0e7646e718c3d3a5aed6147c7..7afd0e1486c759d23979c246f297d1bed747ff08 100644
(file)
--- a/
lunaix-os/kernel/exe/exec.c
+++ b/
lunaix-os/kernel/exe/exec.c
@@
-11,6
+11,7
@@
#include <lunaix/syscall_utils.h>
#include <sys/abi.h>
#include <lunaix/syscall_utils.h>
#include <sys/abi.h>
+#include <sys/mm/mempart.h>
#include <klibc/string.h>
#include <klibc/string.h>
@@
-94,7
+95,7
@@
exec_load(struct exec_container* container, struct v_file* executable)
if (container->vms_mnt == VMS_SELF) {
// we are loading executable into current addr space
if (container->vms_mnt == VMS_SELF) {
// we are loading executable into current addr space
- ptr_t ustack = US
TACK_TOP
;
+ ptr_t ustack = US
R_STACK_END
;
size_t argv_len = 0, envp_len = 0;
ptr_t argv_ptr = 0, envp_ptr = 0;
size_t argv_len = 0, envp_len = 0;
ptr_t argv_ptr = 0, envp_ptr = 0;