/openbmc/qemu/linux-user/alpha/ |
H A D | target_syscall.h | 8 abi_ulong r0; 9 abi_ulong r1; 10 abi_ulong r2; 11 abi_ulong r3; 12 abi_ulong r4; 13 abi_ulong r5; 14 abi_ulong r6; 15 abi_ulong r7; 16 abi_ulong r8; 17 abi_ulong r19; [all …]
|
/openbmc/qemu/bsd-user/x86_64/ |
H A D | target_arch_signal.h | 32 abi_ulong mc_onstack; /* XXX - sigcontext compat. */ 33 abi_ulong mc_rdi; /* machine state (struct trapframe) */ 34 abi_ulong mc_rsi; 35 abi_ulong mc_rdx; 36 abi_ulong mc_rcx; 37 abi_ulong mc_r8; 38 abi_ulong mc_r9; 39 abi_ulong mc_rax; 40 abi_ulong mc_rbx; 41 abi_ulong mc_rbp; [all …]
|
H A D | target_syscall.h | 25 abi_ulong r15; 26 abi_ulong r14; 27 abi_ulong r13; 28 abi_ulong r12; 29 abi_ulong rbp; 30 abi_ulong rbx; 32 abi_ulong r11; 33 abi_ulong r10; 34 abi_ulong r9; 35 abi_ulong r8; [all …]
|
/openbmc/qemu/bsd-user/i386/ |
H A D | target_arch_signal.h | 31 abi_ulong mc_onstack; /* XXX - sigcontext compat. */ 32 abi_ulong mc_gs; /* machine state (struct trapframe) */ 33 abi_ulong mc_fs; 34 abi_ulong mc_es; 35 abi_ulong mc_ds; 36 abi_ulong mc_edi; 37 abi_ulong mc_esi; 38 abi_ulong mc_ebp; 39 abi_ulong mc_isp; 40 abi_ulong mc_ebx; [all …]
|
/openbmc/qemu/linux-user/x86_64/ |
H A D | target_syscall.h | 8 abi_ulong r15; 9 abi_ulong r14; 10 abi_ulong r13; 11 abi_ulong r12; 12 abi_ulong rbp; 13 abi_ulong rbx; 15 abi_ulong r11; 16 abi_ulong r10; 17 abi_ulong r9; 18 abi_ulong r8; [all …]
|
/openbmc/qemu/linux-user/ |
H A D | syscall_defs.h | 202 abi_ulong filter; 462 abi_ulong sig[TARGET_NSIG_WORDS]; 479 static inline void target_siginitset(target_sigset_t *d, abi_ulong set) in target_siginitset() 489 void host_to_target_old_sigset(abi_ulong *old_sigset, 492 const abi_ulong *old_sigset); 495 struct target_sigaction *oact, abi_ulong ka_restorer); 506 typedef abi_ulong target_old_sa_flags; 515 abi_ulong _sa_handler; 520 abi_ulong sa_restorer; 525 abi_ulong _sa_handler; [all …]
|
H A D | user-mmap.h | 39 extern abi_ulong task_unmapped_base; 40 extern abi_ulong elf_et_dyn_base; 47 extern abi_ulong mmap_next_start; 49 int target_mprotect(abi_ulong start, abi_ulong len, int prot); 50 abi_long target_mmap(abi_ulong start, abi_ulong len, int prot, 52 int target_munmap(abi_ulong start, abi_ulong len); 53 abi_long target_mremap(abi_ulong old_addr, abi_ulong old_size, 54 abi_ulong new_size, unsigned long flags, 55 abi_ulong new_addr); 56 abi_long target_madvise(abi_ulong start, abi_ulong len_in, int advice); [all …]
|
H A D | qemu.h | 25 abi_ulong load_bias; 26 abi_ulong load_addr; 27 abi_ulong start_code; 28 abi_ulong end_code; 29 abi_ulong start_data; 30 abi_ulong end_data; 31 abi_ulong brk; 32 abi_ulong start_stack; 33 abi_ulong stack_limit; 34 abi_ulong vdso; [all …]
|
H A D | flatload.c | 55 abi_ulong start_code; /* Start of text segment */ 56 abi_ulong start_data; /* Start of data segment */ 57 abi_ulong end_data; /* Start of bss section */ 58 abi_ulong start_brk; /* End of data segment */ 59 abi_ulong text_len; /* Length of text segment */ 60 abi_ulong entry; /* Start address for this module */ 61 abi_ulong build_date; /* When this one was compiled */ 75 static abi_ulong copy_strings(abi_ulong p, int n, char **s) in copy_strings() 88 static int target_pread(int fd, abi_ulong ptr, abi_ulong len, in target_pread() 89 abi_ulong offset) in target_pread() [all …]
|
H A D | flat.h | 25 abi_ulong rev; /* version (as above) */ 26 abi_ulong entry; /* Offset of first executable instruction 28 abi_ulong data_start; /* Offset of data segment from beginning of 30 abi_ulong data_end; /* Offset of end of data segment 32 abi_ulong bss_end; /* Offset of end of bss segment from beginning 37 abi_ulong stack_size; /* Size of stack, in bytes */ 38 abi_ulong reloc_start; /* Offset of relocation records from 40 abi_ulong reloc_count; /* Number of relocation records */ 41 abi_ulong flags; 42 abi_ulong build_date; /* When the program/library was built */ [all …]
|
H A D | mmap.c | 167 int target_mprotect(abi_ulong start, abi_ulong len, int target_prot) in target_mprotect() 170 abi_ulong starts[3]; in target_mprotect() 171 abi_ulong lens[3]; in target_mprotect() 173 abi_ulong host_start, host_last, last; in target_mprotect() 203 for (abi_ulong a = host_start; a < start; a += TARGET_PAGE_SIZE) { in target_mprotect() 206 for (abi_ulong a = last; a < host_last; a += TARGET_PAGE_SIZE) { in target_mprotect() 217 for (abi_ulong a = host_start; a < start; a += TARGET_PAGE_SIZE) { in target_mprotect() 233 for (abi_ulong a = last; a < host_last; a += TARGET_PAGE_SIZE) { in target_mprotect() 330 static bool mmap_frag(abi_ulong real_start, abi_ulong start, abi_ulong last, in mmap_frag() 334 abi_ulong real_last; in mmap_frag() [all …]
|
/openbmc/qemu/bsd-user/ |
H A D | qemu.h | 58 abi_ulong load_bias; 59 abi_ulong load_addr; 60 abi_ulong start_code; 61 abi_ulong end_code; 62 abi_ulong start_data; 63 abi_ulong end_data; 64 abi_ulong brk; 65 abi_ulong rss; 66 abi_ulong start_stack; 67 abi_ulong entry; [all …]
|
H A D | mmap.c | 64 int target_mprotect(abi_ulong start, abi_ulong len, int prot) in target_mprotect() 66 abi_ulong end, host_start, host_end, addr; in target_mprotect() 186 static int mmap_frag(abi_ulong real_start, in mmap_frag() 187 abi_ulong start, abi_ulong end, in mmap_frag() 188 int prot, int flags, int fd, abi_ulong offset) in mmap_frag() 190 abi_ulong real_end, addr; in mmap_frag() 250 abi_ulong mmap_next_start = TASK_UNMAPPED_BASE; 256 static abi_ulong mmap_find_vma_reserved(abi_ulong start, abi_ulong size, in mmap_find_vma_reserved() 257 abi_ulong alignment) in mmap_find_vma_reserved() 259 abi_ulong ret; in mmap_find_vma_reserved() [all …]
|
/openbmc/qemu/linux-user/xtensa/ |
H A D | target_structs.h | 11 abi_ulong __seq; /* Sequence number. */ 12 abi_ulong __unused1; 13 abi_ulong __unused2; 19 abi_ulong __unused1; 20 abi_ulong sem_otime; 21 abi_ulong __unused2; 22 abi_ulong sem_ctime; 24 abi_ulong sem_otime; 25 abi_ulong __unused1; 26 abi_ulong sem_ctime; [all …]
|
/openbmc/qemu/linux-user/ppc/ |
H A D | target_syscall.h | 31 abi_ulong gpr[32]; 32 abi_ulong nip; 33 abi_ulong msr; 34 abi_ulong orig_gpr3; /* Used for restarting system calls */ 35 abi_ulong ctr; 36 abi_ulong link; 37 abi_ulong xer; 38 abi_ulong ccr; 40 abi_ulong softe; 42 abi_ulong mq; /* 601 only (not used at present) */ [all …]
|
/openbmc/qemu/bsd-user/openbsd/ |
H A D | target_os_elf.h | 66 static abi_ulong target_create_elf_tables(abi_ulong p, int argc, int envc, in target_create_elf_tables() 67 abi_ulong stringp, in target_create_elf_tables() 69 abi_ulong load_addr, in target_create_elf_tables() 70 abi_ulong load_bias, in target_create_elf_tables() 71 abi_ulong interp_load_addr, in target_create_elf_tables() 74 abi_ulong sp; in target_create_elf_tables() 76 abi_ulong u_platform; in target_create_elf_tables() 93 sp = sp & ~(abi_ulong)15; in target_create_elf_tables() 119 NEW_AUX_ENT(AT_PHDR, (abi_ulong)(load_addr + exec->e_phoff)); in target_create_elf_tables() 120 NEW_AUX_ENT(AT_PHENT, (abi_ulong)(sizeof(struct elf_phdr))); in target_create_elf_tables() [all …]
|
/openbmc/qemu/bsd-user/netbsd/ |
H A D | target_os_elf.h | 66 static abi_ulong target_create_elf_tables(abi_ulong p, int argc, int envc, in target_create_elf_tables() 67 abi_ulong stringp, in target_create_elf_tables() 69 abi_ulong load_addr, in target_create_elf_tables() 70 abi_ulong load_bias, in target_create_elf_tables() 71 abi_ulong interp_load_addr, in target_create_elf_tables() 74 abi_ulong sp; in target_create_elf_tables() 76 abi_ulong u_platform; in target_create_elf_tables() 93 sp = sp & ~(abi_ulong)15; in target_create_elf_tables() 119 NEW_AUX_ENT(AT_PHDR, (abi_ulong)(load_addr + exec->e_phoff)); in target_create_elf_tables() 120 NEW_AUX_ENT(AT_PHENT, (abi_ulong)(sizeof(struct elf_phdr))); in target_create_elf_tables() [all …]
|
/openbmc/qemu/bsd-user/freebsd/ |
H A D | target_os_elf.h | 69 static abi_ulong target_create_elf_tables(abi_ulong p, int argc, int envc, in target_create_elf_tables() 70 abi_ulong stringp, in target_create_elf_tables() 72 abi_ulong load_addr, in target_create_elf_tables() 73 abi_ulong load_bias, in target_create_elf_tables() 74 abi_ulong interp_load_addr, in target_create_elf_tables() 77 abi_ulong features, sp; in target_create_elf_tables() 86 sp = sp & ~(abi_ulong)15; in target_create_elf_tables() 107 NEW_AUX_ENT(AT_PHDR, (abi_ulong)(load_addr + exec->e_phoff)); in target_create_elf_tables() 108 NEW_AUX_ENT(AT_PHENT, (abi_ulong)(sizeof(struct elf_phdr))); in target_create_elf_tables() 109 NEW_AUX_ENT(AT_PHNUM, (abi_ulong)(exec->e_phnum)); in target_create_elf_tables() [all …]
|
H A D | os-proc.h | 40 static inline abi_long do_freebsd_execve(abi_ulong path_or_fd, abi_ulong argp, in do_freebsd_execve() 41 abi_ulong envp) in do_freebsd_execve() 48 static inline abi_long do_freebsd_fexecve(abi_ulong path_or_fd, abi_ulong argp, in do_freebsd_fexecve() 49 abi_ulong envp) in do_freebsd_fexecve() 56 static inline abi_long do_freebsd_wait4(abi_long arg1, abi_ulong target_status, in do_freebsd_wait4() 57 abi_long arg3, abi_ulong target_rusage) in do_freebsd_wait4() 86 abi_ulong target_status, abi_long options, abi_ulong target_wrusage, in do_freebsd_wait6() 87 abi_ulong target_infop, abi_ulong pad1) in do_freebsd_wait6() 136 static inline abi_long do_freebsd_setloginclass(abi_ulong arg1) in do_freebsd_setloginclass() 152 static inline abi_long do_freebsd_getloginclass(abi_ulong arg1, abi_ulong arg2) in do_freebsd_getloginclass() [all …]
|
H A D | os-sys.c | 36 [CTLTYPE_ULONG] = sizeof(abi_ulong), 68 static const abi_ulong guest_max_mem = UINT32_MAX - 0x100c000 + 1; 70 static abi_ulong cap_memory(uint64_t mem) in cap_memory() 76 static abi_ulong scale_to_guest_pages(uint64_t pages) in scale_to_guest_pages() 82 pages = MIN(pages, guest_max_mem / (abi_ulong)TARGET_PAGE_SIZE); in scale_to_guest_pages() 99 static abi_ulong h2g_ulong_sat(u_long ul) in h2g_ulong_sat() 213 *(abi_ulong *)gp = tswap32(h2g_ulong_sat(*(u_long *)hp)); in h2g_old_sysctl() 271 (*(abi_ulong *)holdp) = tswapal(TARGET_USRSTACK); in do_freebsd_sysctl_oid() 273 holdlen = sizeof(abi_ulong); in do_freebsd_sysctl_oid() 279 (*(abi_ulong *)holdp) = tswapal(TARGET_PS_STRINGS); in do_freebsd_sysctl_oid() [all …]
|
/openbmc/qemu/linux-user/arm/ |
H A D | signal.c | 28 abi_ulong trap_no; 29 abi_ulong error_code; 30 abi_ulong oldmask; 31 abi_ulong arm_r0; 32 abi_ulong arm_r1; 33 abi_ulong arm_r2; 34 abi_ulong arm_r3; 35 abi_ulong arm_r4; 36 abi_ulong arm_r5; 37 abi_ulong arm_r6; [all …]
|
/openbmc/qemu/linux-user/mips/ |
H A D | target_structs.h | 31 abi_ulong __unused1; 32 abi_ulong __unused2; 38 abi_ulong shm_atime; /* time of last shmat() */ 39 abi_ulong shm_dtime; /* time of last shmdt() */ 40 abi_ulong shm_ctime; /* time of last change by shmctl() */ 43 abi_ulong shm_nattch; /* number of current attaches */ 44 abi_ulong __unused1; 45 abi_ulong __unused2; 57 abi_ulong sem_otime; 58 abi_ulong sem_ctime; [all …]
|
/openbmc/qemu/linux-user/generic/ |
H A D | target_structs.h | 32 abi_ulong __unused1; 33 abi_ulong __unused2; 39 abi_ulong shm_atime; /* time of last shmat() */ 41 abi_ulong __unused1; 43 abi_ulong shm_dtime; /* time of last shmdt() */ 45 abi_ulong __unused2; 47 abi_ulong shm_ctime; /* time of last change by shmctl() */ 49 abi_ulong __unused3; 53 abi_ulong shm_nattch; /* number of current attaches */ 54 abi_ulong __unused4; [all …]
|
/openbmc/qemu/linux-user/s390x/ |
H A D | target_structs.h | 37 abi_ulong __unused1; 38 abi_ulong __unused2; 44 abi_ulong shm_atime; /* time of last shmat() */ 46 abi_ulong __unused1; 48 abi_ulong shm_dtime; /* time of last shmdt() */ 50 abi_ulong __unused2; 52 abi_ulong shm_ctime; /* time of last change by shmctl() */ 54 abi_ulong __unused3; 58 abi_ulong shm_nattch; /* number of current attaches */ 59 abi_ulong __unused4; [all …]
|
/openbmc/qemu/linux-user/sparc/ |
H A D | target_syscall.h | 6 abi_ulong u_regs[16]; 7 abi_ulong tstate; 8 abi_ulong pc; 9 abi_ulong npc; 15 abi_ulong psr; 16 abi_ulong pc; 17 abi_ulong npc; 18 abi_ulong y; 19 abi_ulong u_regs[16]; 48 static inline abi_ulong target_shmlba(CPUSPARCState *env) in target_shmlba()
|