[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 03/10] bsd-user: Add sysarch syscall
From: |
Warner Losh |
Subject: |
[PULL 03/10] bsd-user: Add sysarch syscall |
Date: |
Wed, 1 Mar 2023 11:23:46 -0700 |
From: Stacey Son <sson@FreeBSD.org>
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>
---
bsd-user/freebsd/os-syscall.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/bsd-user/freebsd/os-syscall.c b/bsd-user/freebsd/os-syscall.c
index b4a663fc021..e00997a818c 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;
--
2.39.1
- [PULL 00/10] Bsd user 2023q1 patches, Warner Losh, 2023/03/01
- [PULL 01/10] bsd-user: Don't truncate the return value from freebsd_syscall, Warner Losh, 2023/03/01
- [PULL 02/10] build: Don't specify -no-pie for --static user-mode programs, Warner Losh, 2023/03/01
- [PULL 03/10] bsd-user: Add sysarch syscall,
Warner Losh <=
- [PULL 04/10] bsd-user: various helper routines for sysctl, Warner Losh, 2023/03/01
- [PULL 05/10] bsd-user: Helper routines oidfmt, Warner Losh, 2023/03/01
- [PULL 06/10] bsd-user: sysctl helper funtions: sysctl_name2oid and sysctl_oidfmt, Warner Losh, 2023/03/01
- [PULL 07/10] bsd-user: common routine do_freebsd_sysctl_oid for all sysctl variants, Warner Losh, 2023/03/01
- [PULL 08/10] bsd-user: Start translation of arch-specific sysctls, Warner Losh, 2023/03/01
- [PULL 09/10] bsd-user: do_freebsd_sysctl helper for sysctl(2), Warner Losh, 2023/03/01
- [PULL 10/10] bsd-user: implement sysctlbyname(2), Warner Losh, 2023/03/01
- Re: [PULL 00/10] Bsd user 2023q1 patches, Peter Maydell, 2023/03/02