aboutsummaryrefslogtreecommitdiff
path: root/bsd-user/freebsd/os-syscall.c
diff options
context:
space:
mode:
authorWarner Losh <imp@bsdimp.com>2023-09-25 21:27:09 +0300
committerWarner Losh <imp@bsdimp.com>2023-10-03 17:14:07 -0600
commitdfa1d915756b2d9d22946cbd7d2587f30cdcb7a3 (patch)
treef50bc6667fccb492b8811035e7b98ae07834914d /bsd-user/freebsd/os-syscall.c
parent4e00b7d85d0dcc2064c68168163d3a411e32798f (diff)
downloadqemu-dfa1d915756b2d9d22946cbd7d2587f30cdcb7a3.zip
qemu-dfa1d915756b2d9d22946cbd7d2587f30cdcb7a3.tar.gz
qemu-dfa1d915756b2d9d22946cbd7d2587f30cdcb7a3.tar.bz2
bsd-user: Add stubs for vadvise(), sbrk() and sstk()
The above system calls are not supported by qemu. Signed-off-by: Warner Losh <imp@bsdimp.com> Signed-off-by: Karim Taha <kariem.taha2.7@gmail.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20230925182709.4834-24-kariem.taha2.7@gmail.com>
Diffstat (limited to 'bsd-user/freebsd/os-syscall.c')
-rw-r--r--bsd-user/freebsd/os-syscall.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/bsd-user/freebsd/os-syscall.c b/bsd-user/freebsd/os-syscall.c
index 39e6631..ca2f6fd 100644
--- a/bsd-user/freebsd/os-syscall.c
+++ b/bsd-user/freebsd/os-syscall.c
@@ -879,6 +879,18 @@ static abi_long freebsd_syscall(void *cpu_env, int num, abi_long arg1,
ret = do_bsd_shmdt(arg1);
break;
+ case TARGET_FREEBSD_NR_freebsd11_vadvise:
+ ret = do_bsd_vadvise();
+ break;
+
+ case TARGET_FREEBSD_NR_sbrk:
+ ret = do_bsd_sbrk();
+ break;
+
+ case TARGET_FREEBSD_NR_sstk:
+ ret = do_bsd_sstk();
+ break;
+
/*
* Misc
*/