aboutsummaryrefslogtreecommitdiff
path: root/bsd-user
diff options
context:
space:
mode:
authorStacey Son <sson@FreeBSD.org>2023-02-10 09:48:19 -0700
committerWarner Losh <imp@bsdimp.com>2023-03-01 11:09:18 -0700
commitfb96f5dfed8a45f44356899c92d6fcba0e7658a5 (patch)
tree81e99b218ea90622c7cb8f053d188dcf8af1ca3a /bsd-user
parenta365689f20f514eee248bc2d6db01a5b10ba26bd (diff)
downloadqemu-fb96f5dfed8a45f44356899c92d6fcba0e7658a5.zip
qemu-fb96f5dfed8a45f44356899c92d6fcba0e7658a5.tar.gz
qemu-fb96f5dfed8a45f44356899c92d6fcba0e7658a5.tar.bz2
bsd-user: Add sysarch syscall
Connect up the sysarch system call. Signed-off-by: Juergen Lock <nox@jelal.kn-bremen.de> Co-authored-by: Juergen Lock <nox@jelal.kn-bremen.de> Signed-off-by: Stacey Son <sson@FreeBSD.org> Reviewed-by: Warner Losh <imp@bsdimp.com> Signed-off-by: Warner Losh <imp@bsdimp.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'bsd-user')
-rw-r--r--bsd-user/freebsd/os-syscall.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/bsd-user/freebsd/os-syscall.c b/bsd-user/freebsd/os-syscall.c
index b4a663f..e00997a 100644
--- a/bsd-user/freebsd/os-syscall.c
+++ b/bsd-user/freebsd/os-syscall.c
@@ -491,6 +491,13 @@ static abi_long freebsd_syscall(void *cpu_env, int num, abi_long arg1,
ret = do_bsd_undelete(arg1);
break;
+ /*
+ * sys{ctl, arch, call}
+ */
+ case TARGET_FREEBSD_NR_sysarch: /* sysarch(2) */
+ ret = do_freebsd_sysarch(cpu_env, arg1, arg2);
+ break;
+
default:
qemu_log_mask(LOG_UNIMP, "Unsupported syscall: %d\n", num);
ret = -TARGET_ENOSYS;