[PATCH -next v20 12/26] riscv: Add ptrace vector support
Andreas Schwab
schwab at suse.de
Wed May 24 00:50:36 PDT 2023
On Mai 24 2023, Arnd Bergmann wrote:
> On Wed, May 24, 2023, at 02:49, Palmer Dabbelt wrote:
>> On Thu, 18 May 2023 09:19:35 PDT (-0700), andy.chiu at sifive.com wrote:
>
>>> static const struct user_regset_view riscv_user_native_view = {
>>> diff --git a/include/uapi/linux/elf.h b/include/uapi/linux/elf.h
>>> index ac3da855fb19..7d8d9ae36615 100644
>>> --- a/include/uapi/linux/elf.h
>>> +++ b/include/uapi/linux/elf.h
>>> @@ -440,6 +440,7 @@ typedef struct elf64_shdr {
>>> #define NT_MIPS_DSP 0x800 /* MIPS DSP ASE registers */
>>> #define NT_MIPS_FP_MODE 0x801 /* MIPS floating-point mode */
>>> #define NT_MIPS_MSA 0x802 /* MIPS SIMD registers */
>>> +#define NT_RISCV_VECTOR 0x900 /* RISC-V vector registers */
>>
>> IIUC we're OK to define note types here, as they're all sub-types of the
>> "LINUX" note as per the comment? I'm not entirely sure, though.
>>
>> Maybe Arnd knows?
>
> No idea. It looks like glibc has the master copy of this file[1], and
> they pull in changes from the kernel version, so it's probably fine,
> but I don't know if that's the way it's intended to go.
Yes, for these types of definitions the kernel (as the producer) is the
authoritative source.
--
Andreas Schwab, SUSE Labs, schwab at suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
More information about the kvm-riscv
mailing list