[PATCH v11 RESEND 4/9] arm64: Kconfig: Detect toolchain support for LSUI
Yeoreum Yun
yeoreum.yun at arm.com
Tue Jan 20 03:35:52 PST 2026
> On Mon, Jan 19, 2026 at 03:50:43PM +0000, Will Deacon wrote:
> > On Sun, Dec 14, 2025 at 11:22:43AM +0000, Yeoreum Yun wrote:
>
> > > +config AS_HAS_LSUI
> > > + def_bool $(as-instr,.arch_extension lsui)
> > > + help
> > > + Supported by LLVM 20+ and binutils 2.45+.
>
> > This is an internal Kconfig variable so please drop the help text.
>
> It would be useful to keep the information about supported compilers as
> a comment though (as is done for some of the other toolchain feature
> tests).
With some comments from other thread,
What about this?
+menu "ARMv9.6 architectural features"
+
+config ARM64_LSUI
+ bool "Support Unprivileged Load Store Instructions (LSUI)"
+ default y
+ depends on AS_HAS_LSUI && !CPU_BIG_ENDIAN
+ help
+ The Unprivileged Load Store Instructions (LSUI) provides
+ variants load/store instructions that access user-space memory
+ from the kernel without clearing PSTATE.PAN bit.
+
+ This feature is supported by LLVM 20+ and binutils 2.45+.
+
+endmenu # "ARMv9.6 architectural feature"
+
config AS_HAS_LSUI
def_bool $(as-instr,.arch_extension lsui)
- help
- Supported by LLVM 20+ and binutils 2.45+.
--
Sincerely,
Yeoreum Yun
More information about the linux-arm-kernel
mailing list