[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 25/30] bsd-user/arm/target_arch_signal.h: arm get_ucontext_sig
From: |
Warner Losh |
Subject: |
[PATCH v2 25/30] bsd-user/arm/target_arch_signal.h: arm get_ucontext_sigreturn |
Date: |
Tue, 2 Nov 2021 16:52:43 -0600 |
Update ucontext to implement sigreturn.
Signed-off-by: Stacey Son <sson@FreeBSD.org>
Signed-off-by: Warner Losh <imp@bsdimp.com>
---
bsd-user/arm/target_arch_signal.h | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/bsd-user/arm/target_arch_signal.h
b/bsd-user/arm/target_arch_signal.h
index 3b2f56ffab..3db76c9201 100644
--- a/bsd-user/arm/target_arch_signal.h
+++ b/bsd-user/arm/target_arch_signal.h
@@ -254,4 +254,13 @@ static inline abi_long set_mcontext(CPUARMState *env,
target_mcontext_t *mcp,
return err;
}
+/* Compare to arm/arm/machdep.c sys_sigreturn() */
+static inline abi_long get_ucontext_sigreturn(CPUARMState *env,
+ abi_ulong target_sf, abi_ulong *target_uc)
+{
+ *target_uc = target_sf;
+
+ return 0;
+}
+
#endif /* !_TARGET_ARCH_SIGNAL_H_ */
--
2.33.0
- Re: [PATCH v2 22/30] bsd-user/arm/target_arch_signal.h: arm set_sigtramp_args, (continued)
- [PATCH v2 20/30] bsd-user/arm/target_arch_signal.h: arm machine context for signals, Warner Losh, 2021/11/02
- [PATCH v2 21/30] bsd-user/arm/target_arch_signal.h: arm user context and trapframe for signals, Warner Losh, 2021/11/02
- [PATCH v2 23/30] bsd-user/arm/target_arch_signal.h: arm get_mcontext, Warner Losh, 2021/11/02
- [PATCH v2 26/30] bsd-user: add arm target build, Warner Losh, 2021/11/02
- [PATCH v2 25/30] bsd-user/arm/target_arch_signal.h: arm get_ucontext_sigreturn,
Warner Losh <=
- [PATCH v2 24/30] bsd-user/arm/target_arch_signal.h: arm set_mcontext, Warner Losh, 2021/11/02
- [PATCH v2 16/30] bsd-user/arm/target_arch_elf.h: arm get hwcap, Warner Losh, 2021/11/02
- [PATCH v2 27/30] bsd-user/i386/target_arch_signal.h: Remove target_sigcontext, Warner Losh, 2021/11/02
- [PATCH v2 29/30] bsd-user/i386/target_arch_signal.h: use new target_os_ucontext.h, Warner Losh, 2021/11/02
- [PATCH v2 30/30] bsd-user/x86_64/target_arch_signal.h: use new target_os_ucontext.h, Warner Losh, 2021/11/02