[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 04/32] bsd-user: Add freebsd_exec_common and do_freebsd_procctl t
From: |
Karim Taha |
Subject: |
[PATCH 04/32] bsd-user: Add freebsd_exec_common and do_freebsd_procctl to qemu.h. |
Date: |
Sun, 27 Aug 2023 17:57:18 +0200 |
From: Stacey Son <sson@FreeBSD.org>
Signed-off-by: Stacey Son <sson@FreeBSD.org>
Signed-off-by: Karim Taha <kariem.taha2.7@gmail.com>
---
bsd-user/main.c | 2 +-
bsd-user/qemu.h | 7 +++++++
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/bsd-user/main.c b/bsd-user/main.c
index 381bb18df8..b94b2d34b6 100644
--- a/bsd-user/main.c
+++ b/bsd-user/main.c
@@ -88,7 +88,7 @@ unsigned long reserved_va = MAX_RESERVED_VA;
unsigned long reserved_va;
#endif
-static const char *interp_prefix = CONFIG_QEMU_INTERP_PREFIX;
+const char *interp_prefix = CONFIG_QEMU_INTERP_PREFIX;
const char *qemu_uname_release;
char qemu_proc_pathname[PATH_MAX]; /* full path to exeutable */
diff --git a/bsd-user/qemu.h b/bsd-user/qemu.h
index 6724bb9f0a..23bbdd3e0c 100644
--- a/bsd-user/qemu.h
+++ b/bsd-user/qemu.h
@@ -113,6 +113,7 @@ typedef struct TaskState {
} __attribute__((aligned(16))) TaskState;
void stop_all_tasks(void);
+extern const char *interp_prefix;
extern const char *qemu_uname_release;
/*
@@ -251,6 +252,12 @@ abi_long get_errno(abi_long ret);
bool is_error(abi_long ret);
int host_to_target_errno(int err);
+/* os-proc.c */
+abi_long freebsd_exec_common(abi_ulong path_or_fd, abi_ulong guest_argp,
+ abi_ulong guest_envp, int do_fexec);
+abi_long do_freebsd_procctl(void *cpu_env, int idtype, abi_ulong arg2,
+ abi_ulong arg3, abi_ulong arg4, abi_ulong arg5, abi_ulong arg6);
+
/* os-sys.c */
abi_long do_freebsd_sysctl(CPUArchState *env, abi_ulong namep, int32_t namelen,
abi_ulong oldp, abi_ulong oldlenp, abi_ulong newp, abi_ulong newlen);
--
2.40.0
- [PATCH 00/32] bsd-user: Implement freebsd process related system calls., Karim Taha, 2023/08/28
- [PATCH 01/32] bsd-user: define TARGET_RFSPAWN for rfork to use vfork(2) semantics., Karim Taha, 2023/08/28
- [PATCH 02/32] bsd-user: Implement procctl(2) system call., Karim Taha, 2023/08/28
- [PATCH 03/32] bsd-user: Implement host_to_target_siginfo., Karim Taha, 2023/08/28
- [PATCH 04/32] bsd-user: Add freebsd_exec_common and do_freebsd_procctl to qemu.h.,
Karim Taha <=
- [PATCH 05/32] bsd-user: add extern declarations for bsd-proc.c conversion functions, Karim Taha, 2023/08/28
- [PATCH 06/32] bsd-user: Add bsd-proc.c to meson.build, Karim Taha, 2023/08/28
- [PATCH 07/32] bsd-user: Implement target_to_host_resource conversion function, Karim Taha, 2023/08/28
- [PATCH 08/32] bsd-user: Implement target_to_host_rlim and host_to_target_rlim conversion., Karim Taha, 2023/08/28
- [PATCH 10/32] bsd-user: Implement host_to_target_waitstatus conversion., Karim Taha, 2023/08/28