Skip to content

Commit 377609a

Browse files
LeviYeoReumctmarinas
authored andcommitted
arm64: Kconfig: Add support for LSUI
Since Armv9.6, FEAT_LSUI supplies the load/store instructions for previleged level to access to access user memory without clearing PSTATE.PAN bit. Add Kconfig option entry for FEAT_LSUI. Signed-off-by: Yeoreum Yun <yeoreum.yun@arm.com> Reviewed-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
1 parent 16dbe77 commit 377609a

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

arch/arm64/Kconfig

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2215,6 +2215,26 @@ config ARM64_GCS
22152215

22162216
endmenu # "ARMv9.4 architectural features"
22172217

2218+
config AS_HAS_LSUI
2219+
def_bool $(as-instr,.arch_extension lsui)
2220+
help
2221+
Supported by LLVM 20+ and binutils 2.45+.
2222+
2223+
menu "ARMv9.6 architectural features"
2224+
2225+
config ARM64_LSUI
2226+
bool "Support Unprivileged Load Store Instructions (LSUI)"
2227+
default y
2228+
depends on AS_HAS_LSUI && !CPU_BIG_ENDIAN
2229+
help
2230+
The Unprivileged Load Store Instructions (LSUI) provides
2231+
variants load/store instructions that access user-space memory
2232+
from the kernel without clearing PSTATE.PAN bit.
2233+
2234+
This feature is supported by LLVM 20+ and binutils 2.45+.
2235+
2236+
endmenu # "ARMv9.6 architectural feature"
2237+
22182238
config ARM64_SVE
22192239
bool "ARM Scalable Vector Extension support"
22202240
default y

0 commit comments

Comments
 (0)