[PATCH v16 16/27] riscv: signal: abstract header saving for setup_sigcontext