blob: f64c14adadb365ddebd758908df05c9fe2e20d93 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001# SPDX-License-Identifier: GPL-2.0
Chris Zankel8e1a6dd2005-06-23 22:01:10 -07002menu "Kernel hacking"
3
4source "lib/Kconfig.debug"
5
Max Filippova99e07e2013-05-15 19:34:05 +04006config DEBUG_TLB_SANITY
7 bool "Debug TLB sanity"
Max Filippovbe603092014-10-02 20:52:56 +04008 depends on DEBUG_KERNEL && MMU
Max Filippova99e07e2013-05-15 19:34:05 +04009 help
10 Enable this to turn on TLB sanity check on each entry to userspace.
11 This check can spot missing TLB invalidation/wrong PTE permissions/
12 premature page freeing.
13
14 If unsure, say N.
15
Chris Zankel65501622012-11-13 15:16:36 -080016config LD_NO_RELAX
17 bool "Disable linker relaxation"
Chris Zankel1f2fdbd2014-12-15 21:22:21 -080018 default y
Chris Zankel65501622012-11-13 15:16:36 -080019 help
20 Enable this function to disable link-time optimizations.
21 The default linker behavior is to combine identical literal
22 values to reduce code size and remove unnecessary overhead from
23 assembler-generated 'longcall' sequences.
24 Enabling this option improves the link time but increases the
25 code size, and possibly execution time.
26
Max Filippov00273122012-11-28 11:33:02 +040027config S32C1I_SELFTEST
28 bool "Perform S32C1I instruction self-test at boot"
29 default y
30 help
31 Enable this option to test S32C1I instruction behavior at boot.
32 Correct operation of this instruction requires some cooperation from hardware
33 external to the processor (such as bus bridge, bus fabric, or memory controller).
34 It is easy to make wrong hardware configuration, this test should catch it early.
35
36 Say 'N' on stable hardware.
37
Chris Zankel8e1a6dd2005-06-23 22:01:10 -070038endmenu