On Mon, Aug 9, 2021 at 3:00 PM Richard Henderson <
richard.hender...@linaro.org> wrote:
> On 8/7/21 11:42 AM, Warner Losh wrote:
> > +static inline int setup_initial_stack(struct bsd_binprm *bprm,
> > +abi_ulong *ret_addr, abi_ulong *stringp)
> > +{
> > +int i;
> > +abi_ulong stack
On 8/7/21 11:42 AM, Warner Losh wrote:
+static inline int setup_initial_stack(struct bsd_binprm *bprm,
+abi_ulong *ret_addr, abi_ulong *stringp)
+{
+int i;
+abi_ulong stack_hi_addr;
+size_t execpath_len, stringspace;
+abi_ulong destp, argvp, envp, p;
+struct target_ps_
From: Warner Losh
Move all of the stack initialization into target_os_stack.h. Each BSD
sets up processes a little differently.
Signed-off-by: Stacey Son
Signed-off-by: Warner Losh
---
bsd-user/freebsd/target_os_stack.h | 181 +
bsd-user/netbsd/target_os_stack.h |