[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v4 34/36] bsd-user/arm/target_arch_signal.c: arm get_ucontext_sig
From: |
Warner Losh |
Subject: |
[PATCH v4 34/36] bsd-user/arm/target_arch_signal.c: arm get_ucontext_sigreturn |
Date: |
Thu, 4 Nov 2021 21:19:15 -0600 |
Update ucontext to implement sigreturn.
Signed-off-by: Stacey Son <sson@FreeBSD.org>
Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
---
bsd-user/arm/signal.c | 9 +++++++++
bsd-user/arm/target_arch_signal.h | 2 ++
2 files changed, 11 insertions(+)
diff --git a/bsd-user/arm/signal.c b/bsd-user/arm/signal.c
index d32e3b4560..344ce69cea 100644
--- a/bsd-user/arm/signal.c
+++ b/bsd-user/arm/signal.c
@@ -188,3 +188,12 @@ abi_long set_mcontext(CPUARMState *env, target_mcontext_t
*mcp, int srflag)
return err;
}
+
+/* Compare to arm/arm/machdep.c sys_sigreturn() */
+abi_long get_ucontext_sigreturn(CPUARMState *env, abi_ulong target_sf,
+ abi_ulong *target_uc)
+{
+ *target_uc = target_sf;
+
+ return 0;
+}
diff --git a/bsd-user/arm/target_arch_signal.h
b/bsd-user/arm/target_arch_signal.h
index 83ecfaafef..5a4a9d5345 100644
--- a/bsd-user/arm/target_arch_signal.h
+++ b/bsd-user/arm/target_arch_signal.h
@@ -91,5 +91,7 @@ abi_long set_sigtramp_args(CPUARMState *regs, int sig,
struct target_sigaction *ka);
abi_long get_mcontext(CPUARMState *regs, target_mcontext_t *mcp, int flags);
abi_long set_mcontext(CPUARMState *regs, target_mcontext_t *mcp, int srflag);
+abi_long get_ucontext_sigreturn(CPUARMState *regs, abi_ulong target_sf,
+ abi_ulong *target_uc);
#endif /* !_TARGET_ARCH_SIGNAL_H_ */
--
2.33.0
- [PATCH v4 25/36] bsd-user/arm/target_arch_elf.h: arm defines for ELF, (continued)
- [PATCH v4 25/36] bsd-user/arm/target_arch_elf.h: arm defines for ELF, Warner Losh, 2021/11/04
- [PATCH v4 27/36] bsd-user/arm/target_arch_elf.h: arm get_hwcap2 impl, Warner Losh, 2021/11/04
- [PATCH v4 28/36] bsd-user/arm/target_arch_signal.h: arm specific signal registers and stack, Warner Losh, 2021/11/04
- [PATCH v4 30/36] bsd-user/arm/target_arch_signal.h: Define size of *context_t, Warner Losh, 2021/11/04
- [PATCH v4 31/36] bsd-user/arm/target_arch_signal.c: arm set_sigtramp_args, Warner Losh, 2021/11/04
- [PATCH v4 32/36] bsd-user/arm/target_arch_signal.c: arm get_mcontext, Warner Losh, 2021/11/04
- [PATCH v4 35/36] bsd-user/freebsd/target_os_ucontext.h: Require TARGET_*CONTEXT_SIZE, Warner Losh, 2021/11/04
- [PATCH v4 34/36] bsd-user/arm/target_arch_signal.c: arm get_ucontext_sigreturn,
Warner Losh <=
- [PATCH v4 36/36] bsd-user: add arm target build, Warner Losh, 2021/11/04