[PATCH V3 13/17] riscv: compat: signal: Add rt_frame implementation

Arnd Bergmann arnd at arndb.de
Thu Jan 20 01:37:43 PST 2022


On Thu, Jan 20, 2022 at 8:39 AM <guoren at kernel.org> wrote:
>
> From: Guo Ren <guoren at linux.alibaba.com>
>
> 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 at linux.alibaba.com>
> Signed-off-by: Guo Ren <guoren at kernel.org>
> Cc: Arnd Bergmann <arnd at arndb.de>

I hope someone else can properly review this part, it's not my area
but it looks complex enough that it could bring subtle bugs.

       Arnd



More information about the linux-riscv mailing list