summaryrefslogtreecommitdiff
path: root/scripts/basic/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorAndy Chiu <andybnac@gmail.com>2025-11-12 16:43:14 -0800
committerPaul Walmsley <pjw@kernel.org>2025-12-19 00:18:33 -0700
commit818d78ba1b3f88d2bfee249f25020211488a26c3 (patch)
treeaacada70804318cfbb5fbf9e4938600250f61443 /scripts/basic/git@git.tavy.me:linux.git
parent8f0b4cce4481fb22653697cced8d0d04027cb1e8 (diff)
riscv: signal: abstract header saving for setup_sigcontext
The function save_v_state() served two purposes. First, it saved extension context into the signal stack. Then, it constructed the extension header if there was no fault. The second part is independent of the extension itself. As a result, we can pull that part out, so future extensions may reuse it. This patch adds arch_ext_list and makes setup_sigcontext() go through all possible extensions' save() callback. The callback returns a positive value indicating the size of the successfully saved extension. Then the kernel proceeds to construct the header for that extension. The kernel skips an extension if it does not exist, or if the saving fails for some reasons. The error code is propagated out on the later case. This patch does not introduce any functional changes. Signed-off-by: Andy Chiu <andybnac@gmail.com> Link: https://patch.msgid.link/20251112-v5_user_cfi_series-v23-16-b55691eacf4f@rivosinc.com Signed-off-by: Paul Walmsley <pjw@kernel.org>
Diffstat (limited to 'scripts/basic/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions