Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
Chris Zankel | 8e1a6dd | 2005-06-23 22:01:10 -0700 | [diff] [blame] | 2 | menu "Kernel hacking" |
| 3 | |
| 4 | source "lib/Kconfig.debug" |
| 5 | |
Max Filippov | a99e07e | 2013-05-15 19:34:05 +0400 | [diff] [blame] | 6 | config DEBUG_TLB_SANITY |
| 7 | bool "Debug TLB sanity" |
Max Filippov | be60309 | 2014-10-02 20:52:56 +0400 | [diff] [blame] | 8 | depends on DEBUG_KERNEL && MMU |
Max Filippov | a99e07e | 2013-05-15 19:34:05 +0400 | [diff] [blame] | 9 | 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 Zankel | 6550162 | 2012-11-13 15:16:36 -0800 | [diff] [blame] | 16 | config LD_NO_RELAX |
| 17 | bool "Disable linker relaxation" |
Chris Zankel | 1f2fdbd | 2014-12-15 21:22:21 -0800 | [diff] [blame] | 18 | default y |
Chris Zankel | 6550162 | 2012-11-13 15:16:36 -0800 | [diff] [blame] | 19 | 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 Filippov | 0027312 | 2012-11-28 11:33:02 +0400 | [diff] [blame] | 27 | config 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 Zankel | 8e1a6dd | 2005-06-23 22:01:10 -0700 | [diff] [blame] | 38 | endmenu |