]> www.infradead.org Git - users/jedix/linux-maple.git/commit
riscv: hwprobe: Export the Supm ISA extension
authorSamuel Holland <samuel.holland@sifive.com>
Wed, 16 Oct 2024 20:27:49 +0000 (13:27 -0700)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 24 Oct 2024 21:12:59 +0000 (14:12 -0700)
commit3c2e0aff7b4f03fbc11b7d63c8db5b94a48978cf
treebde1ba52aad93d082306f2bc845b6010a9871c94
parent7470b5afd150e683c7aef03961d0c4c6f500de3b
riscv: hwprobe: Export the Supm ISA extension

Supm is a virtual ISA extension defined in the RISC-V Pointer Masking
specification, which indicates that pointer masking is available in
U-mode. It can be provided by either Smnpm or Ssnpm, depending on which
mode the kernel runs in. Userspace should not care about this
distinction, so export Supm instead of either underlying extension.

Hide the extension if the kernel was compiled without support for the
pointer masking prctl() interface.

Signed-off-by: Samuel Holland <samuel.holland@sifive.com>
Link: https://lore.kernel.org/r/20241016202814.4061541-9-samuel.holland@sifive.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Documentation/arch/riscv/hwprobe.rst
arch/riscv/include/uapi/asm/hwprobe.h
arch/riscv/kernel/sys_hwprobe.c