diff options
author | Ian Moffett <ian@osmora.org> | 2024-04-25 23:53:17 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-04-25 23:53:17 -0400 |
commit | 28990d31ab8425bdc75d2fec8becc0a993cd2250 (patch) | |
tree | d9c40844fd44d7f9c465a40992a4438fe48db461 /sys/include | |
parent | 5ada17916af15077da6ec443ee094e69dc6ed704 (diff) |
kernel: sched: Use exec_args for argp, envp, etc
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include')
-rw-r--r-- | sys/include/sys/proc.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/include/sys/proc.h b/sys/include/sys/proc.h index f74d1da..8c1b959 100644 --- a/sys/include/sys/proc.h +++ b/sys/include/sys/proc.h @@ -34,6 +34,7 @@ #include <sys/queue.h> #include <sys/filedesc.h> #include <sys/spinlock.h> +#include <sys/loader.h> #include <machine/cpu.h> #include <machine/frame.h> #include <machine/pcb.h> @@ -43,6 +44,12 @@ #define PROC_MAX_FDS 256 #define PROC_MAX_ADDR_RANGE 4 +struct exec_args { + char **argp, **envp; + struct auxval auxv; + struct vas vas; +}; + enum { ADDR_RANGE_EXEC = 0, /* Program address range */ ADDR_RANGE_STACK /* Stack address range */ |