2931709ed9
Added functions for setting up the RISC-V signal trampoline and signal frame: 'set_sigtramp_args()': Configures the RISC-V CPU state with arguments for the signal handler. It sets up the registers with the signal number,pointers to the signal info and user context, the signal handler address, and the signal frame pointer. 'setup_sigframe_arch()': Initializes the signal frame with the current machine context.This function copies the context from the CPU state to the signal frame, preparing it for the signal handler. Signed-off-by: Mark Corbin <mark@dibsco.co.uk> Signed-off-by: Ajeet Singh <itachis@FreeBSD.org> Signed-off-by: Warner Losh <imp@bsdimp.com> Co-authored-by: Warner Losh <imp@bsdimp.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-ID: <20240916155119.14610-15-itachis@FreeBSD.org> Signed-off-by: Alistair Francis <alistair.francis@wdc.com> |
||
---|---|---|
.. | ||
signal.c | ||
target_arch_cpu.c | ||
target_arch_cpu.h | ||
target_arch_elf.h | ||
target_arch_reg.h | ||
target_arch_signal.h | ||
target_arch_sigtramp.h | ||
target_arch_sysarch.h | ||
target_arch_thread.h | ||
target_arch_vmparam.h | ||
target_arch.h | ||
target_syscall.h | ||
target.h |