]> git.ipfire.org Git - thirdparty/qemu.git/commit
bsd-user:Add ARM AArch64 signal handling support
authorStacey Son <sson@FreeBSD.org>
Sun, 7 Jul 2024 19:11:24 +0000 (00:41 +0530)
committerWarner Losh <imp@bsdimp.com>
Tue, 23 Jul 2024 16:50:54 +0000 (10:50 -0600)
commit7dba5e10a65be276267f379f07a9643100209c0d
treef81bae6f7ed2cd789269dc38674b6c6919c88a8b
parent1541d87db24063fcb11b13e6bfb66a193ff9be65
bsd-user:Add ARM AArch64 signal handling support

Added sigcode setup function for signal trampoline which initializes a sequence of instructions
to handle signal returns and exits, copying this code to the target offset.
Defined ARM AArch64 specific signal definitions including register indices and sizes,
and introduced structures to represent general purpose registers, floating point registers, and machine context.
Added function to set up signal handler arguments, populating register values in `CPUARMState`
based on the provided signal, signal frame, signal action, and frame address.

Signed-off-by: Stacey Son <sson@FreeBSD.org>
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: <20240707191128.10509-5-itachis@FreeBSD.org>
Signed-off-by: Warner Losh <imp@bsdimp.com>
bsd-user/aarch64/signal.c [new file with mode: 0644]
bsd-user/aarch64/target_arch_signal.h [new file with mode: 0644]
bsd-user/aarch64/target_arch_sigtramp.h [new file with mode: 0644]