diff options
| author | Charlie Jenkins <[email protected]> | 2024-11-14 02:21:16 +0000 |
|---|---|---|
| committer | Palmer Dabbelt <[email protected]> | 2025-01-18 20:33:35 +0000 |
| commit | a5ea53da65c588339890c825e63c0da5baef6897 (patch) | |
| tree | ace6d5dc97496d022e1cbe4e3ee7b4da7d97cf36 /net/unix/af_unix.c | |
| parent | riscv: vector: Support xtheadvector save/restore (diff) | |
| download | kernel-a5ea53da65c588339890c825e63c0da5baef6897.tar.gz kernel-a5ea53da65c588339890c825e63c0da5baef6897.zip | |
riscv: hwprobe: Add thead vendor extension probing
Add a new hwprobe key "RISCV_HWPROBE_KEY_VENDOR_EXT_THEAD_0" which
allows userspace to probe for the new RISCV_ISA_VENDOR_EXT_XTHEADVECTOR
vendor extension.
This new key will allow userspace code to probe for which thead vendor
extensions are supported. This API is modeled to be consistent with
RISCV_HWPROBE_KEY_IMA_EXT_0. The bitmask returned will have each bit
corresponding to a supported thead vendor extension of the cpumask set.
Just like RISCV_HWPROBE_KEY_IMA_EXT_0, this allows a userspace program
to determine all of the supported thead vendor extensions in one call.
Signed-off-by: Charlie Jenkins <[email protected]>
Reviewed-by: Evan Green <[email protected]>
Tested-by: Yangyu Chen <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
