[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 12/37] bsd-user/target_os_signal.h: Move signal prototypes to targ
From: |
Warner Losh |
Subject: |
[PULL 12/37] bsd-user/target_os_signal.h: Move signal prototypes to target_os_ucontext.h |
Date: |
Sat, 8 Jan 2022 00:37:12 -0700 |
Switch to the CPUArchState typedef and move target-provided prototypes
to target_os_ucontext.h.
Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
---
bsd-user/freebsd/target_os_ucontext.h | 11 +++++++++++
bsd-user/i386/target_arch_signal.h | 9 ---------
bsd-user/x86_64/target_arch_signal.h | 9 ---------
3 files changed, 11 insertions(+), 18 deletions(-)
diff --git a/bsd-user/freebsd/target_os_ucontext.h
b/bsd-user/freebsd/target_os_ucontext.h
index 1d0c3c4e651..dd61aec7cce 100644
--- a/bsd-user/freebsd/target_os_ucontext.h
+++ b/bsd-user/freebsd/target_os_ucontext.h
@@ -32,4 +32,15 @@ G_STATIC_ASSERT(TARGET_MCONTEXT_SIZE ==
sizeof(target_mcontext_t));
G_STATIC_ASSERT(TARGET_UCONTEXT_SIZE == sizeof(target_ucontext_t));
#endif /* TARGET_MCONTEXT_SIZE */
+struct target_sigframe;
+
+abi_long set_sigtramp_args(CPUArchState *env, int sig,
+ struct target_sigframe *frame,
+ abi_ulong frame_addr,
+ struct target_sigaction *ka);
+abi_long get_mcontext(CPUArchState *regs, target_mcontext_t *mcp, int flags);
+abi_long set_mcontext(CPUArchState *regs, target_mcontext_t *mcp, int srflag);
+abi_long get_ucontext_sigreturn(CPUArchState *regs, abi_ulong target_sf,
+ abi_ulong *target_uc);
+
#endif /* TARGET_OS_UCONTEXT_H */
diff --git a/bsd-user/i386/target_arch_signal.h
b/bsd-user/i386/target_arch_signal.h
index 982c7035c75..279dadc22c7 100644
--- a/bsd-user/i386/target_arch_signal.h
+++ b/bsd-user/i386/target_arch_signal.h
@@ -88,13 +88,4 @@ struct target_sigframe {
uint32_t __spare__[2];
};
-abi_long set_sigtramp_args(CPUX86State *env, int sig,
- struct target_sigframe *frame,
- abi_ulong frame_addr,
- struct target_sigaction *ka);
-abi_long get_mcontext(CPUX86State *regs, target_mcontext_t *mcp, int flags);
-abi_long set_mcontext(CPUX86State *regs, target_mcontext_t *mcp, int srflag);
-abi_long get_ucontext_sigreturn(CPUX86State *regs, abi_ulong target_sf,
- abi_ulong *target_uc);
-
#endif /* TARGET_ARCH_SIGNAL_H */
diff --git a/bsd-user/x86_64/target_arch_signal.h
b/bsd-user/x86_64/target_arch_signal.h
index b39b70466ef..b4a0ebf2bd5 100644
--- a/bsd-user/x86_64/target_arch_signal.h
+++ b/bsd-user/x86_64/target_arch_signal.h
@@ -96,13 +96,4 @@ struct target_sigframe {
uint32_t __spare__[2];
};
-abi_long set_sigtramp_args(CPUX86State *env, int sig,
- struct target_sigframe *frame,
- abi_ulong frame_addr,
- struct target_sigaction *ka);
-abi_long get_mcontext(CPUX86State *regs, target_mcontext_t *mcp, int flags);
-abi_long set_mcontext(CPUX86State *regs, target_mcontext_t *mcp, int srflag);
-abi_long get_ucontext_sigreturn(CPUX86State *regs, abi_ulong target_sf,
- abi_ulong *target_uc);
-
#endif /* !TARGET_ARCH_SIGNAL_H_ */
--
2.33.1
- [PULL 10/37] bsd-user/x86_64/target_arch_signal.h: Fill in mcontext_t, (continued)
- [PULL 10/37] bsd-user/x86_64/target_arch_signal.h: Fill in mcontext_t, Warner Losh, 2022/01/08
- [PULL 13/37] bsd-user/arm/target_arch_sysarch.h: Use consistent include guards, Warner Losh, 2022/01/08
- [PULL 16/37] bsd-user/arm/target_arch_cpu.h: CPU Loop definitions, Warner Losh, 2022/01/08
- [PULL 25/37] bsd-user/arm/target_arch_thread.h: Routines to create and switch to a thread, Warner Losh, 2022/01/08
- [PULL 28/37] bsd-user/arm/target_arch_elf.h: arm get_hwcap2 impl, Warner Losh, 2022/01/08
- [PULL 09/37] bsd-user/x86_64/target_arch_signal.h: use new target_os_ucontext.h, Warner Losh, 2022/01/08
- [PULL 06/37] bsd-user/i386/target_arch_signal.h: Update mcontext_t to match FreeBSD, Warner Losh, 2022/01/08
- [PULL 32/37] bsd-user/arm/signal.c: arm set_sigtramp_args, Warner Losh, 2022/01/08
- [PULL 11/37] bsd-user/x86_64: Move functions into signal.c, Warner Losh, 2022/01/08
- [PULL 02/37] bsd-user/freebsd: Create common target_os_ucontext.h file, Warner Losh, 2022/01/08
- [PULL 12/37] bsd-user/target_os_signal.h: Move signal prototypes to target_os_ucontext.h,
Warner Losh <=
- [PULL 08/37] bsd-user/x86_64/target_arch_signal.h: Remove target_sigcontext, Warner Losh, 2022/01/08
- [PULL 31/37] bsd-user/arm/target_arch_signal.h: Define size of *context_t, Warner Losh, 2022/01/08
- [PULL 17/37] bsd-user/arm/target_arch_cpu.h: Implement target_cpu_clone_regs, Warner Losh, 2022/01/08
- [PULL 36/37] bsd-user/freebsd/target_os_ucontext.h: Require TARGET_*CONTEXT_SIZE, Warner Losh, 2022/01/08
- [PULL 14/37] bsd-user/arm/target_syscall.h: Add copyright and update name, Warner Losh, 2022/01/08
- [PULL 30/37] bsd-user/arm/target_arch_signal.h: arm machine context and trapframe for signals, Warner Losh, 2022/01/08
- [PULL 01/37] bsd-user/mips*: Remove mips support, Warner Losh, 2022/01/08
- [PULL 18/37] bsd-user/arm/target_arch_cpu.h: Dummy target_cpu_loop implementation, Warner Losh, 2022/01/08
- [PULL 23/37] bsd-user/arm/target_arch_vmparam.h: Parameters for arm address space, Warner Losh, 2022/01/08
- [PULL 22/37] bsd-user/arm/target_arch_reg.h: Implement core dump register copying, Warner Losh, 2022/01/08