[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 02/17] bsd-user: Make init_task_state global
From: |
Warner Losh |
Subject: |
[PATCH 02/17] bsd-user: Make init_task_state global |
Date: |
Fri, 2 Aug 2024 17:56:02 -0600 |
Restore init_task_state to its global status. It's needed for threading
support outside of main.
Signed-off-by: Warner Losh <imp@bsdimp.com>
---
bsd-user/main.c | 2 +-
bsd-user/qemu.h | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/bsd-user/main.c b/bsd-user/main.c
index cc980e6f401..4d29e13a8f5 100644
--- a/bsd-user/main.c
+++ b/bsd-user/main.c
@@ -213,7 +213,7 @@ void qemu_cpu_kick(CPUState *cpu)
}
/* Assumes contents are already zeroed. */
-static void init_task_state(TaskState *ts)
+void init_task_state(TaskState *ts)
{
ts->sigaltstack_used = (struct target_sigaltstack) {
.ss_sp = 0,
diff --git a/bsd-user/qemu.h b/bsd-user/qemu.h
index 4ccbee265a1..c7f78096734 100644
--- a/bsd-user/qemu.h
+++ b/bsd-user/qemu.h
@@ -119,6 +119,7 @@ struct TaskState {
struct target_sigaltstack sigaltstack_used;
} __attribute__((aligned(16)));
+void init_task_state(TaskState *ts);
void stop_all_tasks(void);
extern const char *interp_prefix;
extern const char *qemu_uname_release;
--
2.45.1
- [PATCH 00/17] For 9.2: A bunch of cleanups and work towards variable pagesize support, Warner Losh, 2024/08/02
- [PATCH 01/17] bsd-user: Delete TaskState next member, Warner Losh, 2024/08/02
- [PATCH 02/17] bsd-user: Make init_task_state global,
Warner Losh <=
- [PATCH 04/17] bsd-user: Implement cpu_copy(), Warner Losh, 2024/08/02
- [PATCH 05/17] bsd-user: Eliminate unused regs arg in load_elf_binary, Warner Losh, 2024/08/02
- [PATCH 12/17] bsd-user: Use guest_range_valid_untagged to validate range, Warner Losh, 2024/08/02
- [PATCH 03/17] bsd-user: Make cpu_model and cpu_type file scope, Warner Losh, 2024/08/02
- [PATCH 07/17] bsd-user: Remove deprecated -p argument, Warner Losh, 2024/08/02