]>
git.proxmox.com Git - mirror_qemu.git/blob - linux-user/qemu.h
7 #include "syscall_defs.h"
11 #include "syscall-i386.h"
14 /* This struct is used to hold certain information about the image.
15 * Basically, it replicates in user space what would be certain
16 * task_struct fields in the kernel
19 unsigned long start_code
;
20 unsigned long end_code
;
21 unsigned long end_data
;
22 unsigned long start_brk
;
24 unsigned long start_mmap
;
27 unsigned long start_stack
;
28 unsigned long arg_start
;
29 unsigned long arg_end
;
30 unsigned long env_start
;
31 unsigned long env_end
;
36 int elf_exec(const char *interp_prefix
,
37 const char * filename
, char ** argv
, char ** envp
,
38 struct target_pt_regs
* regs
, struct image_info
*infop
);
40 void target_set_brk(char *new_brk
);
41 void syscall_init(void);
42 long do_syscall(void *cpu_env
, int num
, long arg1
, long arg2
, long arg3
,
43 long arg4
, long arg5
, long arg6
);
44 void gemu_log(const char *fmt
, ...) __attribute__((format(printf
,1,2)));
45 extern CPUX86State
*global_env
;
46 void cpu_loop(CPUX86State
*env
);
47 void process_pending_signals(void *cpu_env
);
48 void signal_init(void);
49 int queue_signal(int sig
, target_siginfo_t
*info
);