Re: [PATCH 15/18] bsd-user: Implement RISC-V signal trampoline setup functions

2024-08-03 Thread Richard Henderson
On 8/3/24 10:04, Warner Losh wrote: > +     regs->pc = ka->_sa_handler; > +     regs->gpr[2] = frame_addr; > +     regs->gpr[1] = TARGET_PS_STRINGS - TARGET_SZSIGCODE; xRA, xSP. So to be clear, this is 'use these constants rather than the raw numbers for the array subscript

Re: [PATCH 15/18] bsd-user: Implement RISC-V signal trampoline setup functions

2024-08-02 Thread Warner Losh
On Fri, Aug 2, 2024 at 7:46 AM Richard Henderson < richard.hender...@linaro.org> wrote: > On 8/2/24 18:34, Ajeet Singh wrote: > > From: Mark Corbin > > > > Added functions for setting up the RISC-V signal trampoline and signal > > frame: > > > > 'set_sigtramp_args()': Configures the RISC-V CPU st

Re: [PATCH 15/18] bsd-user: Implement RISC-V signal trampoline setup functions

2024-08-02 Thread Richard Henderson
On 8/2/24 18:34, Ajeet Singh wrote: From: Mark Corbin Added functions for setting up the RISC-V signal trampoline and signal frame: 'set_sigtramp_args()': Configures the RISC-V CPU state with arguments for the signal handler. It sets up the registers with the signal number,pointers to the sign

[PATCH 15/18] bsd-user: Implement RISC-V signal trampoline setup functions

2024-08-02 Thread Ajeet Singh
From: Mark Corbin Added functions for setting up the RISC-V signal trampoline and signal frame: 'set_sigtramp_args()': Configures the RISC-V CPU state with arguments for the signal handler. It sets up the registers with the signal number,pointers to the signal info and user context, the signal h