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 | |
Max Filippov | a99e07e | 2013-05-15 19:34:05 +0400 | [diff] [blame] | 3 | config DEBUG_TLB_SANITY |
| 4 | bool "Debug TLB sanity" |
Max Filippov | be60309 | 2014-10-02 20:52:56 +0400 | [diff] [blame] | 5 | depends on DEBUG_KERNEL && MMU |
Max Filippov | a99e07e | 2013-05-15 19:34:05 +0400 | [diff] [blame] | 6 | help |
| 7 | Enable this to turn on TLB sanity check on each entry to userspace. |
| 8 | This check can spot missing TLB invalidation/wrong PTE permissions/ |
| 9 | premature page freeing. |
| 10 | |
| 11 | If unsure, say N. |
| 12 | |
Chris Zankel | 6550162 | 2012-11-13 15:16:36 -0800 | [diff] [blame] | 13 | config LD_NO_RELAX |
| 14 | bool "Disable linker relaxation" |
Chris Zankel | 1f2fdbd | 2014-12-15 21:22:21 -0800 | [diff] [blame] | 15 | default y |
Chris Zankel | 6550162 | 2012-11-13 15:16:36 -0800 | [diff] [blame] | 16 | help |
| 17 | Enable this function to disable link-time optimizations. |
| 18 | The default linker behavior is to combine identical literal |
| 19 | values to reduce code size and remove unnecessary overhead from |
| 20 | assembler-generated 'longcall' sequences. |
| 21 | Enabling this option improves the link time but increases the |
| 22 | code size, and possibly execution time. |
| 23 | |
Max Filippov | 0027312 | 2012-11-28 11:33:02 +0400 | [diff] [blame] | 24 | config S32C1I_SELFTEST |
| 25 | bool "Perform S32C1I instruction self-test at boot" |
| 26 | default y |
| 27 | help |
| 28 | Enable this option to test S32C1I instruction behavior at boot. |
| 29 | Correct operation of this instruction requires some cooperation from hardware |
| 30 | external to the processor (such as bus bridge, bus fabric, or memory controller). |
| 31 | It is easy to make wrong hardware configuration, this test should catch it early. |
| 32 | |
| 33 | Say 'N' on stable hardware. |
Max Filippov | 8951eb15 | 2019-11-12 08:43:25 -0800 | [diff] [blame] | 34 | |
| 35 | config PRINT_STACK_DEPTH |
| 36 | int "Stack depth to print" if DEBUG_KERNEL |
| 37 | default 64 |
| 38 | help |
| 39 | This option allows you to set the stack depth that the kernel |
| 40 | prints in stack traces. |