mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-26 11:32:23 -06:00
bsd-user: pass the bsd_param into loader_exec
Pass the bsd_param into loader_exec, and adjust. We use it to track the inital stack allocation and to set stack, open files, and other state shared between bsdload.c and elfload.c Signed-off-by: Warner Losh <imp@bsdimp.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
This commit is contained in:
parent
66ef252fab
commit
d37853f92f
3 changed files with 27 additions and 20 deletions
|
@ -131,7 +131,8 @@ void do_init_thread(struct target_pt_regs *regs, struct image_info *infop);
|
|||
abi_ulong loader_build_argptr(int envc, int argc, abi_ulong sp,
|
||||
abi_ulong stringp, int push_ptr);
|
||||
int loader_exec(const char *filename, char **argv, char **envp,
|
||||
struct target_pt_regs *regs, struct image_info *infop);
|
||||
struct target_pt_regs *regs, struct image_info *infop,
|
||||
struct bsd_binprm *bprm);
|
||||
|
||||
int load_elf_binary(struct bsd_binprm *bprm, struct target_pt_regs *regs,
|
||||
struct image_info *info);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue