RISC-V: sys/user.h
Palmer Dabbelt
palmer@dabbelt.com
Sat Dec 10 00:26:03 GMT 2022
On Fri, 09 Dec 2022 13:36:05 PST (-0800), l.stelmach@samsung.com wrote:
> It was <2022-12-09 pią 09:07>, when Palmer Dabbelt wrote:
>> On Fri, 09 Dec 2022 08:36:33 PST (-0800), l.stelmach@samsung.com wrote:
>>> Has sysdeps/unix/sysv/linux/riscv/sys/user.h been deliberately left
>>> empty? Why, unlike x86/aarch64/arm, riscv haven't got it's register
>>> structures defined there?
>>
>> We don't have a "struct user_regs_struct", IIUC that's for the old
>> flavor of ptrace-based register handling ({GET,SET}REGS vs
>> {GET,SET}REGSET). So I think having it empty is the correct thing to
>> do.
>
>
> Thanks, this is a precious hint. Now, I know where to look around.
Those definitions are in <sysdeps/unix/sysv/linux/riscv/sys/ucontext.h>
(and also in Linux).
More information about the Libc-alpha
mailing list