[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 09/40] bsd-user/signal-common.h: Move signal functions prototy
From: |
Warner Losh |
Subject: |
[PATCH v3 09/40] bsd-user/signal-common.h: Move signal functions prototypes to here |
Date: |
Fri, 28 Jan 2022 16:27:34 -0700 |
Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
---
bsd-user/arm/target_arch_cpu.h | 1 +
bsd-user/i386/target_arch_cpu.h | 1 +
bsd-user/qemu.h | 8 --------
bsd-user/signal-common.h | 6 ++++++
bsd-user/x86_64/target_arch_cpu.h | 1 +
5 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/bsd-user/arm/target_arch_cpu.h b/bsd-user/arm/target_arch_cpu.h
index c526fc73502..b7f728fd667 100644
--- a/bsd-user/arm/target_arch_cpu.h
+++ b/bsd-user/arm/target_arch_cpu.h
@@ -21,6 +21,7 @@
#define _TARGET_ARCH_CPU_H_
#include "target_arch.h"
+#include "signal-common.h"
#define TARGET_DEFAULT_CPU_MODEL "any"
diff --git a/bsd-user/i386/target_arch_cpu.h b/bsd-user/i386/target_arch_cpu.h
index b28602adbbd..472a96689fc 100644
--- a/bsd-user/i386/target_arch_cpu.h
+++ b/bsd-user/i386/target_arch_cpu.h
@@ -20,6 +20,7 @@
#define _TARGET_ARCH_CPU_H_
#include "target_arch.h"
+#include "signal-common.h"
#define TARGET_DEFAULT_CPU_MODEL "qemu32"
diff --git a/bsd-user/qemu.h b/bsd-user/qemu.h
index 671b26f00cc..99c37fc9942 100644
--- a/bsd-user/qemu.h
+++ b/bsd-user/qemu.h
@@ -199,14 +199,6 @@ print_openbsd_syscall(int num,
void print_openbsd_syscall_ret(int num, abi_long ret);
extern int do_strace;
-/* signal.c */
-void process_pending_signals(CPUArchState *cpu_env);
-void signal_init(void);
-long do_sigreturn(CPUArchState *env);
-long do_rt_sigreturn(CPUArchState *env);
-void queue_signal(CPUArchState *env, int sig, target_siginfo_t *info);
-abi_long do_sigaltstack(abi_ulong uss_addr, abi_ulong uoss_addr, abi_ulong sp);
-
/* mmap.c */
int target_mprotect(abi_ulong start, abi_ulong len, int prot);
abi_long target_mmap(abi_ulong start, abi_ulong len, int prot,
diff --git a/bsd-user/signal-common.h b/bsd-user/signal-common.h
index 6207417d39e..f9a9d1e01aa 100644
--- a/bsd-user/signal-common.h
+++ b/bsd-user/signal-common.h
@@ -9,6 +9,12 @@
#ifndef SIGNAL_COMMON_H
#define SIGNAL_COMMON_H
+long do_rt_sigreturn(CPUArchState *env);
+abi_long do_sigaltstack(abi_ulong uss_addr, abi_ulong uoss_addr, abi_ulong sp);
+long do_sigreturn(CPUArchState *env);
void force_sig_fault(int sig, int code, abi_ulong addr);
+void process_pending_signals(CPUArchState *env);
+void queue_signal(CPUArchState *env, int sig, target_siginfo_t *info);
+void signal_init(void);
#endif
diff --git a/bsd-user/x86_64/target_arch_cpu.h
b/bsd-user/x86_64/target_arch_cpu.h
index 5172b230f09..14def48adb5 100644
--- a/bsd-user/x86_64/target_arch_cpu.h
+++ b/bsd-user/x86_64/target_arch_cpu.h
@@ -20,6 +20,7 @@
#define _TARGET_ARCH_CPU_H_
#include "target_arch.h"
+#include "signal-common.h"
#define TARGET_DEFAULT_CPU_MODEL "qemu64"
--
2.33.1
- [PATCH v3 00/40] bsd-user: upstream signal implementation, Warner Losh, 2022/01/28
- [PATCH v3 01/40] bsd-user: Complete FreeBSD siginfo, Warner Losh, 2022/01/28
- [PATCH v3 03/40] bsd-user/arm/signal.c: Implement setup_sigframe_arch for arm, Warner Losh, 2022/01/28
- [PATCH v3 02/40] bsd-user: Create setup_sigframe_arch to setup sigframe context, Warner Losh, 2022/01/28
- [PATCH v3 04/40] bsd-user/arm/signal.c: get_mcontext should zero vfp data, Warner Losh, 2022/01/28
- [PATCH v3 07/40] bsd-user/arm/target_arch_cpu.h: Move EXCP_ATOMIC to match linux-user, Warner Losh, 2022/01/28
- [PATCH v3 05/40] bsd-user: Remove vestiges of signal queueing code, Warner Losh, 2022/01/28
- [PATCH v3 06/40] bsd-user: Bring in docs from linux-user for signal_pending, Warner Losh, 2022/01/28
- [PATCH v3 08/40] bsd-user/signal.c: implement force_sig_fault, Warner Losh, 2022/01/28
- [PATCH v3 09/40] bsd-user/signal-common.h: Move signal functions prototypes to here,
Warner Losh <=
- [PATCH v3 10/40] bsd-user/signal.c: Implement cpu_loop_exit_sigsegv, Warner Losh, 2022/01/28
- [PATCH v3 12/40] bsd-user/arm/arget_arch_cpu.h: Move EXCP_DEBUG and EXCP_BKPT together, Warner Losh, 2022/01/28
- [PATCH v3 13/40] bsd-user/arm/target_arch_cpu.h: Correct code pointer, Warner Losh, 2022/01/28
- [PATCH v3 11/40] bsd-user/signal.c: implement cpu_loop_exit_sigbus, Warner Losh, 2022/01/28
- [PATCH v3 15/40] bsd-user/arm/target_arch_cpu.h: Implement data faults, Warner Losh, 2022/01/28
- [PATCH v3 16/40] bsd-user/signal.c: implement abstract target / host signal translation, Warner Losh, 2022/01/28
- [PATCH v3 14/40] bsd-user/arm/target_arch_cpu.h: Use force_sig_fault for EXCP_UDEF, Warner Losh, 2022/01/28
- [PATCH v3 21/40] bsd-user/host/x86_64/host-signal.h: Implement host_signal_*, Warner Losh, 2022/01/28
- [PATCH v3 20/40] bsd-user/host/i386/host-signal.h: Implement host_signal_*, Warner Losh, 2022/01/28
- [PATCH v3 18/40] bsd-user/signal.c: Add si_type argument to queue_signal, Warner Losh, 2022/01/28