qemu-e2k/bsd-user
Warner Losh be04f210f9 bsd-user: Update mapping to handle reserved and starting conditions
Update the reserved base based on what platform we're on, as well as the
start of the mmap range. Update routines that find va ranges to interact
with the reserved ranges as well as properly align the mapping (this is
especially important for targets whose page size does not match the
host's). Loop where appropriate when the initial address space offered
by mmap does not meet the contraints.

This has 18e80c55bb from linux-user folded in to the upstream
bsd-user code as well.

Signed-off-by: Mikaël Urankar <mikael.urankar@gmail.com>
Signed-off-by: Stacey Son <sson@FreeBSD.org>
Signed-off-by: Warner Losh <imp@bsdimp.com>
Acked-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Kyle Evans <kevans@FreeBSD.org>
2021-09-10 14:13:06 -06:00
..
arm bsd-user: move strace OS/arch dependent code to host/arch dirs 2021-01-11 14:59:21 +01:00
freebsd bsd-user: Add target_os_user.h to capture the user/kernel structures 2021-09-10 14:13:06 -06:00
i386 bsd-user: Add target_arch_reg to describe a target's register set 2021-09-10 14:13:06 -06:00
mips bsd-user: move strace OS/arch dependent code to host/arch dirs 2021-01-11 14:59:21 +01:00
mips64 bsd-user: move strace OS/arch dependent code to host/arch dirs 2021-01-11 14:59:21 +01:00
netbsd bsd-user: elf cleanup 2021-09-10 14:13:06 -06:00
openbsd bsd-user: elf cleanup 2021-09-10 14:13:06 -06:00
x86_64 bsd-user: Add target_arch_reg to describe a target's register set 2021-09-10 14:13:06 -06:00
bsdload.c bsd-user: TARGET_NGROUPS unused in this file, remove 2021-09-10 14:13:06 -06:00
elfcore.c bsd-user: add stubbed out core dump support 2021-09-10 14:13:06 -06:00
elfload.c bsd-user: Refactor load_elf_sections and is_target_elf_binary 2021-09-10 14:13:06 -06:00
errno_defs.h Preliminary BSD user emulator support 2008-10-26 20:33:16 +00:00
main.c bsd-user: Update mapping to handle reserved and starting conditions 2021-09-10 14:13:06 -06:00
meson.build meson: bsd-user 2020-08-21 06:30:38 -04:00
mmap.c bsd-user: Update mapping to handle reserved and starting conditions 2021-09-10 14:13:06 -06:00
qemu.h bsd-user: Update mapping to handle reserved and starting conditions 2021-09-10 14:13:06 -06:00
signal.c bsd-user: remove target_signal.h, it's unused 2021-05-11 13:52:34 -06:00
strace.c bsd-user: style tweak: Remove #if 0'd code 2021-05-11 11:07:22 -06:00
syscall.c bsd-user: remove sparc and sparc64 2021-09-07 08:26:52 -06:00
syscall_defs.h bsd-user: Rewrite target system call definintion glue 2021-09-10 14:13:06 -06:00
uaccess.c bsd-user: style tweak: keyword space ( 2021-05-11 11:07:22 -06:00