Re: [PATCH v6 1/3] riscv/ptrace: add new regset to access original a0 register

2025-01-15 Thread Charlie Jenkins
On Wed, Jan 15, 2025 at 07:13:27PM +0800, Celeste Liu wrote: > The orig_a0 is missing in struct user_regs_struct of riscv, and there is > no way to add it without breaking UAPI. (See Link tag below) > > Like NT_ARM_SYSTEM_CALL do, we add a new regset name NT_RISCV_ORIG_A0 to > access original a0 r

[PATCH v6 1/3] riscv/ptrace: add new regset to access original a0 register

2025-01-15 Thread Celeste Liu
The orig_a0 is missing in struct user_regs_struct of riscv, and there is no way to add it without breaking UAPI. (See Link tag below) Like NT_ARM_SYSTEM_CALL do, we add a new regset name NT_RISCV_ORIG_A0 to access original a0 register from userspace via ptrace API. Fixes: e2c0cdfba7f6 ("RISC-V: U