Kconfig (ca83c61cb3db964061ea186654bf8e1879589de3) Kconfig (23c996fc2bc1978a02c64eddb90b4ab5d309c8df)
1# SPDX-License-Identifier: GPL-2.0-only
2#
3# For a description of the syntax of this configuration file,
4# see Documentation/kbuild/kconfig-language.rst.
5#
6
7config 64BIT
8 bool

--- 97 unchanged lines hidden (view full) ---

106 select GENERIC_SCHED_CLOCK
107 select GENERIC_SMP_IDLE_THREAD
108 select GENERIC_TIME_VSYSCALL if MMU && 64BIT
109 select GENERIC_VDSO_TIME_NS if HAVE_GENERIC_VDSO
110 select HARDIRQS_SW_RESEND
111 select HAS_IOPORT if MMU
112 select HAVE_ARCH_AUDITSYSCALL
113 select HAVE_ARCH_HUGE_VMALLOC if HAVE_ARCH_HUGE_VMAP
1# SPDX-License-Identifier: GPL-2.0-only
2#
3# For a description of the syntax of this configuration file,
4# see Documentation/kbuild/kconfig-language.rst.
5#
6
7config 64BIT
8 bool

--- 97 unchanged lines hidden (view full) ---

106 select GENERIC_SCHED_CLOCK
107 select GENERIC_SMP_IDLE_THREAD
108 select GENERIC_TIME_VSYSCALL if MMU && 64BIT
109 select GENERIC_VDSO_TIME_NS if HAVE_GENERIC_VDSO
110 select HARDIRQS_SW_RESEND
111 select HAS_IOPORT if MMU
112 select HAVE_ARCH_AUDITSYSCALL
113 select HAVE_ARCH_HUGE_VMALLOC if HAVE_ARCH_HUGE_VMAP
114 select HAVE_ARCH_HUGE_VMAP if MMU && 64BIT
114 select HAVE_ARCH_HUGE_VMAP if MMU && 64BIT && !XIP_KERNEL
115 select HAVE_ARCH_JUMP_LABEL if !XIP_KERNEL
116 select HAVE_ARCH_JUMP_LABEL_RELATIVE if !XIP_KERNEL
117 select HAVE_ARCH_KASAN if MMU && 64BIT
118 select HAVE_ARCH_KASAN_VMALLOC if MMU && 64BIT
119 select HAVE_ARCH_KFENCE if MMU && 64BIT
120 select HAVE_ARCH_KGDB if !XIP_KERNEL
121 select HAVE_ARCH_KGDB_QXFER_PKT
122 select HAVE_ARCH_MMAP_RND_BITS if MMU

--- 500 unchanged lines hidden (view full) ---

623
624# This symbol indicates that the toolchain supports all v1.0 vector crypto
625# extensions, including Zvk*, Zvbb, and Zvbc. LLVM added all of these at once.
626# binutils added all except Zvkb, then added Zvkb. So we just check for Zvkb.
627config TOOLCHAIN_HAS_VECTOR_CRYPTO
628 def_bool $(as-instr, .option arch$(comma) +v$(comma) +zvkb)
629 depends on AS_HAS_OPTION_ARCH
630
115 select HAVE_ARCH_JUMP_LABEL if !XIP_KERNEL
116 select HAVE_ARCH_JUMP_LABEL_RELATIVE if !XIP_KERNEL
117 select HAVE_ARCH_KASAN if MMU && 64BIT
118 select HAVE_ARCH_KASAN_VMALLOC if MMU && 64BIT
119 select HAVE_ARCH_KFENCE if MMU && 64BIT
120 select HAVE_ARCH_KGDB if !XIP_KERNEL
121 select HAVE_ARCH_KGDB_QXFER_PKT
122 select HAVE_ARCH_MMAP_RND_BITS if MMU

--- 500 unchanged lines hidden (view full) ---

623
624# This symbol indicates that the toolchain supports all v1.0 vector crypto
625# extensions, including Zvk*, Zvbb, and Zvbc. LLVM added all of these at once.
626# binutils added all except Zvkb, then added Zvkb. So we just check for Zvkb.
627config TOOLCHAIN_HAS_VECTOR_CRYPTO
628 def_bool $(as-instr, .option arch$(comma) +v$(comma) +zvkb)
629 depends on AS_HAS_OPTION_ARCH
630
631config RISCV_ISA_ZBA
632 bool "Zba extension support for bit manipulation instructions"
633 default y
634 help
635 Add support for enabling optimisations in the kernel when the Zba
636 extension is detected at boot.
637
638 The Zba extension provides instructions to accelerate the generation
639 of addresses that index into arrays of basic data types.
640
641 If you don't know what to do here, say Y.
642
643config RISCV_ISA_ZBB
644 bool "Zbb extension support for bit manipulation instructions"
645 depends on TOOLCHAIN_HAS_ZBB
646 depends on RISCV_ALTERNATIVE
647 default y
648 help
649 Adds support to dynamically detect the presence of the ZBB
650 extension (basic bit manipulation) and enable its usage.

--- 164 unchanged lines hidden (view full) ---

815 Assume that the system supports fast unaligned memory accesses. When
816 enabled, this option improves the performance of the kernel on such
817 systems. However, the kernel and userspace programs will run much more
818 slowly, or will not be able to run at all, on systems that do not
819 support efficient unaligned memory accesses.
820
821endchoice
822
631config RISCV_ISA_ZBB
632 bool "Zbb extension support for bit manipulation instructions"
633 depends on TOOLCHAIN_HAS_ZBB
634 depends on RISCV_ALTERNATIVE
635 default y
636 help
637 Adds support to dynamically detect the presence of the ZBB
638 extension (basic bit manipulation) and enable its usage.

--- 164 unchanged lines hidden (view full) ---

803 Assume that the system supports fast unaligned memory accesses. When
804 enabled, this option improves the performance of the kernel on such
805 systems. However, the kernel and userspace programs will run much more
806 slowly, or will not be able to run at all, on systems that do not
807 support efficient unaligned memory accesses.
808
809endchoice
810
811source "arch/riscv/Kconfig.vendor"
812
823endmenu # "Platform type"
824
825menu "Kernel features"
826
827source "kernel/Kconfig.hz"
828
829config RISCV_SBI_V01
830 bool "SBI v0.1 support"

--- 124 unchanged lines hidden (view full) ---

955 are provided at run-time, during boot. However, there are cases
956 where either no arguments are being provided or the provided
957 arguments are insufficient or even invalid.
958
959 When that occurs, it is possible to define a built-in command
960 line here and choose how the kernel should use it later on.
961
962choice
813endmenu # "Platform type"
814
815menu "Kernel features"
816
817source "kernel/Kconfig.hz"
818
819config RISCV_SBI_V01
820 bool "SBI v0.1 support"

--- 124 unchanged lines hidden (view full) ---

945 are provided at run-time, during boot. However, there are cases
946 where either no arguments are being provided or the provided
947 arguments are insufficient or even invalid.
948
949 When that occurs, it is possible to define a built-in command
950 line here and choose how the kernel should use it later on.
951
952choice
963 prompt "Built-in command line usage"
964 depends on CMDLINE != ""
953 prompt "Built-in command line usage" if CMDLINE != ""
965 default CMDLINE_FALLBACK
966 help
967 Choose how the kernel will handle the provided built-in command
968 line.
969
970config CMDLINE_FALLBACK
971 bool "Use bootloader kernel arguments if available"
972 help

--- 188 unchanged lines hidden ---
954 default CMDLINE_FALLBACK
955 help
956 Choose how the kernel will handle the provided built-in command
957 line.
958
959config CMDLINE_FALLBACK
960 bool "Use bootloader kernel arguments if available"
961 help

--- 188 unchanged lines hidden ---