[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 18/24] bsd-user/arm/target_arch_signal.h: arm machine context
From: |
Kyle Evans |
Subject: |
Re: [PATCH 18/24] bsd-user/arm/target_arch_signal.h: arm machine context for signals |
Date: |
Tue, 26 Oct 2021 01:03:50 -0500 |
On Tue, Oct 19, 2021 at 11:45 AM Warner Losh <imp@bsdimp.com> wrote:
>
> Signed-off-by: Stacey Son <sson@FreeBSD.org>
> Signed-off-by: Klye Evans <kevans@FreeBSD.org>
> Signed-off-by: Warner Losh <imp@bsdimp.com>
> ---
> bsd-user/arm/target_arch_signal.h | 36 +++++++++++++++++++++++++++++++
> 1 file changed, 36 insertions(+)
>
> diff --git a/bsd-user/arm/target_arch_signal.h
> b/bsd-user/arm/target_arch_signal.h
> index 973183d99c..9fee58ca9c 100644
> --- a/bsd-user/arm/target_arch_signal.h
> +++ b/bsd-user/arm/target_arch_signal.h
> @@ -54,4 +54,40 @@
> #define TARGET_MINSIGSTKSZ (1024 * 4) /* min sig stack
> size */
> #define TARGET_SIGSTKSZ (TARGET_MINSIGSTKSZ + 32768) /* recommended
> size */
>
> +/* arm/arm/machdep.c */
> +struct target_sigcontext {
> + target_sigset_t sc_mask; /* signal mask to retstore */
> + int32_t sc_onstack; /* sigstack state to restore */
> + abi_long sc_pc; /* pc at time of signal */
> + abi_long sc_reg[32]; /* processor regs 0 to 31 */
> + abi_long mullo, mulhi; /* mullo and mulhi registers */
> + int32_t sc_fpused; /* fp has been used */
> + abi_long sc_fpregs[33]; /* fp regs 0 to 31 & csr */
> + abi_long sc_fpc_eir; /* fp exception instr reg */
> + /* int32_t reserved[8]; */
> +};
> +
> +typedef struct {
> + uint32_t __fp_fpsr;
> + struct {
> + uint32_t __fp_exponent;
> + uint32_t __fp_mantissa_hi;
> + uint32_t __fp_mantissa_lo;
> + } __fp_fr[8];
> +} target__fpregset_t;
> +
> +typedef struct {
> + uint32_t __vfp_fpscr;
> + uint32_t __vfp_fstmx[33];
> + uint32_t __vfp_fpsid;
> +} target__vfpregset_t;
> +
> +typedef struct target_mcontext {
> + uint32_t __gregs[TARGET__NGREG];
> + union {
> + target__fpregset_t __fpregs;
> + target__vfpregset_t __vfpregs;
> + } __fpu;
> +} target_mcontext_t;
> +
> #endif /* !_TARGET_ARCH_SIGNAL_H_ */
> --
> 2.32.0
>
Reviewed-by: Kyle Evans <kevans@FreeBSD.org>
- Re: [PATCH 12/24] bsd-user/arm/target_arch_sigtramp.h: Signal Trampoline for arm, (continued)
- [PATCH 15/24] bsd-user/arm/target_arch_elf.h: arm get hwcap, Warner Losh, 2021/10/19
- [PATCH 17/24] bsd-user/arm/target_arch_signal.h: arm specific signal registers and stack, Warner Losh, 2021/10/19
- [PATCH 18/24] bsd-user/arm/target_arch_signal.h: arm machine context for signals, Warner Losh, 2021/10/19
- [PATCH 14/24] bsd-user/arm/target_arch_elf.h: arm defines for ELF, Warner Losh, 2021/10/19
- [PATCH 16/24] bsd-user/arm/target_arch_elf.h: arm get_hwcap2 impl, Warner Losh, 2021/10/19
- [PATCH 21/24] bsd-user/arm/target_arch_signal.h: arm get_mcontext, Warner Losh, 2021/10/19