rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | # SPDX-License-Identifier: GPL-2.0 |
| 2 | menu "Kernel hacking" |
| 3 | |
| 4 | source "lib/Kconfig.debug" |
| 5 | |
| 6 | config DEBUG_TLB_SANITY |
| 7 | bool "Debug TLB sanity" |
| 8 | depends on DEBUG_KERNEL && MMU |
| 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 | |
| 16 | config LD_NO_RELAX |
| 17 | bool "Disable linker relaxation" |
| 18 | default y |
| 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 | |
| 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 | |
| 38 | endmenu |