[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v5 30/37] bsd-user/arm/target_arch_signal.h: arm machine context
From: |
Warner Losh |
Subject: |
[PATCH v5 30/37] bsd-user/arm/target_arch_signal.h: arm machine context and trapframe for signals |
Date: |
Sun, 7 Nov 2021 20:51:29 -0700 |
Signed-off-by: Stacey Son <sson@FreeBSD.org>
Signed-off-by: Kyle Evans <kevans@FreeBSD.org>
Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
---
bsd-user/arm/target_arch_signal.h | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/bsd-user/arm/target_arch_signal.h
b/bsd-user/arm/target_arch_signal.h
index 973183d99c..9527335cc9 100644
--- a/bsd-user/arm/target_arch_signal.h
+++ b/bsd-user/arm/target_arch_signal.h
@@ -54,4 +54,32 @@
#define TARGET_MINSIGSTKSZ (1024 * 4) /* min sig stack size
*/
#define TARGET_SIGSTKSZ (TARGET_MINSIGSTKSZ + 32768) /* recommended size
*/
+/*
+ * Floating point register state
+ */
+typedef struct target_mcontext_vfp {
+ abi_ullong mcv_reg[32];
+ abi_ulong mcv_fpscr;
+} target_mcontext_vfp_t;
+
+typedef struct target_mcontext {
+ abi_uint __gregs[TARGET__NGREG];
+
+ /*
+ * Originally, rest of this structure was named __fpu, 35 * 4 bytes
+ * long, never accessed from kernel.
+ */
+ abi_ulong mc_vfp_size;
+ abi_ptr mc_vfp_ptr;
+ abi_int mc_spare[33];
+} target_mcontext_t;
+
+#include "target_os_ucontext.h"
+
+struct target_sigframe {
+ target_siginfo_t sf_si; /* saved siginfo */
+ target_ucontext_t sf_uc; /* saved ucontext */
+ target_mcontext_vfp_t sf_vfp; /* actual saved VFP context */
+};
+
#endif /* !_TARGET_ARCH_SIGNAL_H_ */
--
2.33.0
- [PATCH v5 04/37] bsd-user/i386/target_arch_signal.h: Remove target_sigcontext, (continued)
- [PATCH v5 04/37] bsd-user/i386/target_arch_signal.h: Remove target_sigcontext, Warner Losh, 2021/11/07
- [PATCH v5 16/37] bsd-user/arm/target_arch_cpu.h: CPU Loop definitions, Warner Losh, 2021/11/07
- [PATCH v5 02/37] bsd-user/freebsd: Create common target_os_ucontext.h file, Warner Losh, 2021/11/07
- [PATCH v5 28/37] bsd-user/arm/target_arch_elf.h: arm get_hwcap2 impl, Warner Losh, 2021/11/07
- [PATCH v5 35/37] bsd-user/arm/signal.c: arm get_ucontext_sigreturn, Warner Losh, 2021/11/07
- [PATCH v5 25/37] bsd-user/arm/target_arch_thread.h: Routines to create and switch to a thread, Warner Losh, 2021/11/07
- [PATCH v5 17/37] bsd-user/arm/target_arch_cpu.h: Implement target_cpu_clone_regs, Warner Losh, 2021/11/07
- [PATCH v5 03/37] bsd-user: create a per-arch signal.c file, Warner Losh, 2021/11/07
- [PATCH v5 13/37] bsd-user/arm/target_arch_sysarch.h: Use consistent include guards, Warner Losh, 2021/11/07
- [PATCH v5 14/37] bsd-user/arm/target_syscall.h: Add copyright and update name, Warner Losh, 2021/11/07
- [PATCH v5 30/37] bsd-user/arm/target_arch_signal.h: arm machine context and trapframe for signals,
Warner Losh <=
- [PATCH v5 34/37] bsd-user/arm/signal.c: arm set_mcontext, Warner Losh, 2021/11/07
- [PATCH v5 15/37] bsd-user/arm/target_arch_cpu.c: Target specific TLS routines, Warner Losh, 2021/11/07
- [PATCH v5 36/37] bsd-user/freebsd/target_os_ucontext.h: Require TARGET_*CONTEXT_SIZE, Warner Losh, 2021/11/07
- [PATCH v5 29/37] bsd-user/arm/target_arch_signal.h: arm specific signal registers and stack, Warner Losh, 2021/11/07
- [PATCH v5 32/37] bsd-user/arm/signal.c: arm set_sigtramp_args, Warner Losh, 2021/11/07
- [PATCH v5 21/37] bsd-user/arm/target_arch_cpu.h: Implement system call dispatch, Warner Losh, 2021/11/07
- [PATCH v5 22/37] bsd-user/arm/target_arch_reg.h: Implement core dump register copying, Warner Losh, 2021/11/07
- [PATCH v5 18/37] bsd-user/arm/target_arch_cpu.h: Dummy target_cpu_loop implementation, Warner Losh, 2021/11/07
- [PATCH v5 31/37] bsd-user/arm/target_arch_signal.h: Define size of *context_t, Warner Losh, 2021/11/07