Re: [PATCH for 6.2 28/49] bsd-user: Move stack initializtion into a per-os file.

2021-08-19 Thread Warner Losh
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

Re: [PATCH for 6.2 28/49] bsd-user: Move stack initializtion into a per-os file.

2021-08-09 Thread Richard Henderson
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_

[PATCH for 6.2 28/49] bsd-user: Move stack initializtion into a per-os file.

2021-08-07 Thread Warner Losh
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 |