[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 10/37] bsd-user/x86_64/target_arch_signal.h: Fill in mcontext_t, (continued)
- [PATCH v5 10/37] bsd-user/x86_64/target_arch_signal.h: Fill in mcontext_t, Warner Losh, 2021/11/07
- [PATCH v5 19/37] bsd-user/arm/target_arch_cpu.h: Implement trivial EXCP exceptions, 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 14/37] bsd-user/arm/target_syscall.h: Add copyright and update name, 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 24/37] bsd-user/arm/target_arch_sigtramp.h: Signal Trampoline for arm, 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 25/37] bsd-user/arm/target_arch_thread.h: Routines to create and switch to a thread, Warner Losh, 2021/11/07
- [PATCH v5 26/37] bsd-user/arm/target_arch_elf.h: arm defines for ELF, 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 30/37] bsd-user/arm/target_arch_signal.h: arm machine context and trapframe for signals,
Warner Losh <=
- [PATCH v5 22/37] bsd-user/arm/target_arch_reg.h: Implement core dump register copying, 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 20/37] bsd-user/arm/target_arch_cpu.h: Implement data abort exceptions, Warner Losh, 2021/11/07
- [PATCH v5 23/37] bsd-user/arm/target_arch_vmparam.h: Parameters for arm address space, Warner Losh, 2021/11/07
- [PATCH v5 27/37] bsd-user/arm/target_arch_elf.h: arm get hwcap, Warner Losh, 2021/11/07
- [PATCH v5 34/37] bsd-user/arm/signal.c: arm set_mcontext, Warner Losh, 2021/11/07
- [PATCH v5 33/37] bsd-user/arm/signal.c: arm get_mcontext, 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 31/37] bsd-user/arm/target_arch_signal.h: Define size of *context_t, Warner Losh, 2021/11/07