diff options
| author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-01-16 17:33:13 +0100 |
|---|---|---|
| committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-03-09 14:54:32 +0100 |
| commit | 1405d7e60d8c98a28b29885f70da4f2e4407fbc6 (patch) | |
| tree | d3c6195b307466b0dd7ee4d0125a3b6513712b86 /bsd-user/qemu.h | |
| parent | 84d66261bef3cdfea3bd1fb052a7ba38abb34b18 (diff) | |
| download | focaccia-qemu-1405d7e60d8c98a28b29885f70da4f2e4407fbc6.tar.gz focaccia-qemu-1405d7e60d8c98a28b29885f70da4f2e4407fbc6.zip | |
user: Extract common MMAP API to 'user/mmap.h'
Keep common MMAP-related declarations in a single place. Note, this disable ThreadSafetyAnalysis on Linux for: - mmap_fork_start() - mmap_fork_end(). Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Warner Losh <imp@bsdimp.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20250308122842.76377-4-philmd@linaro.org>
Diffstat (limited to 'bsd-user/qemu.h')
| -rw-r--r-- | bsd-user/qemu.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/bsd-user/qemu.h b/bsd-user/qemu.h index 0b3bd65b18..c1c508281a 100644 --- a/bsd-user/qemu.h +++ b/bsd-user/qemu.h @@ -32,6 +32,7 @@ extern char **environ; #include "user/thunk.h" +#include "user/mmap.h" #include "target_arch.h" #include "syscall_defs.h" #include "target_syscall.h" @@ -233,19 +234,8 @@ void print_taken_signal(int target_signum, const target_siginfo_t *tinfo); extern int do_strace; /* mmap.c */ -int target_mprotect(abi_ulong start, abi_ulong len, int prot); -abi_long target_mmap(abi_ulong start, abi_ulong len, int prot, - int flags, int fd, off_t offset); -int target_munmap(abi_ulong start, abi_ulong len); -abi_long target_mremap(abi_ulong old_addr, abi_ulong old_size, - abi_ulong new_size, unsigned long flags, - abi_ulong new_addr); int target_msync(abi_ulong start, abi_ulong len, int flags); -extern abi_ulong mmap_next_start; -abi_ulong mmap_find_vma(abi_ulong start, abi_ulong size, abi_ulong alignment); void mmap_reserve(abi_ulong start, abi_ulong size); -void TSA_NO_TSA mmap_fork_start(void); -void TSA_NO_TSA mmap_fork_end(int child); /* main.c */ extern char qemu_proc_pathname[]; |