[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 20/30] bsd-user/arm/target_arch_signal.h: arm machine context
From: |
Warner Losh |
Subject: |
[PATCH v2 20/30] bsd-user/arm/target_arch_signal.h: arm machine context for signals |
Date: |
Tue, 2 Nov 2021 16:52:38 -0600 |
Signed-off-by: Stacey Son <sson@FreeBSD.org>
Signed-off-by: Kyle Evans <kevans@FreeBSD.org>
Signed-off-by: Warner Losh <imp@bsdimp.com>
---
bsd-user/arm/target_arch_signal.h | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/bsd-user/arm/target_arch_signal.h
b/bsd-user/arm/target_arch_signal.h
index 973183d99c..3aaced474b 100644
--- a/bsd-user/arm/target_arch_signal.h
+++ b/bsd-user/arm/target_arch_signal.h
@@ -54,4 +54,24 @@
#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 {
+ uint32_t __gregs[32];
+
+ /*
+ * Originally, rest of this structure was named __fpu, 35 * 4 bytes
+ * long, never accessed from kernel.
+ */
+ abi_long mc_vfp_size;
+ abi_ptr *mc_vfp_ptr;
+ abi_int mc_spare[33];
+} target_mcontext_t;
+
#endif /* !_TARGET_ARCH_SIGNAL_H_ */
--
2.33.0
- Re: [PATCH v2 14/30] bsd-user/arm/target_arch_thread.h: Routines to create and switch to a thread, (continued)
- [PATCH v2 15/30] bsd-user/arm/target_arch_elf.h: arm defines for ELF, Warner Losh, 2021/11/02
- [PATCH v2 17/30] bsd-user/arm/target_arch_elf.h: arm get_hwcap2 impl, Warner Losh, 2021/11/02
- [PATCH v2 19/30] bsd-user/arm/target_arch_signal.h: arm specific signal registers and stack, Warner Losh, 2021/11/02
- [PATCH v2 18/30] bsd-user/freebsd: Create common target_os_ucontext.h file, Warner Losh, 2021/11/02
- [PATCH v2 22/30] bsd-user/arm/target_arch_signal.h: arm set_sigtramp_args, Warner Losh, 2021/11/02
- [PATCH v2 20/30] bsd-user/arm/target_arch_signal.h: arm machine context for signals,
Warner Losh <=
- [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, 2021/11/02
- [PATCH v2 24/30] bsd-user/arm/target_arch_signal.h: arm set_mcontext, Warner Losh, 2021/11/02