riscv: compat: signal: Add rt_frame implementation
authorGuo Ren <guoren@linux.alibaba.com>
Tue, 5 Apr 2022 07:13:12 +0000 (15:13 +0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Tue, 17 May 2022 23:37:21 +0000 (16:37 -0700)
commit7383ee05314be58f8f9f018ee0ac53bef3808aea
treea89a2a6a09629f049a1cfef0aa5a1daca90f401e
parent3092eb45637573c5e435fbf5eaf9516316e5f9c6
riscv: compat: signal: Add rt_frame implementation

Implement compat_setup_rt_frame for sigcontext save & restore. The
main process is the same with signal, but the rv32 pt_regs' size
is different from rv64's, so we needs convert them.

Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
Signed-off-by: Guo Ren <guoren@kernel.org>
Reviewed-by: Palmer Dabbelt <palmer@rivosinc.com>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Link: https://lore.kernel.org/r/20220405071314.3225832-19-guoren@kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/include/asm/signal32.h [new file with mode: 0644]
arch/riscv/kernel/Makefile
arch/riscv/kernel/compat_signal.c [new file with mode: 0644]
arch/riscv/kernel/signal.c