18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ciconfig DEBUG_TLB_SANITY
48c2ecf20Sopenharmony_ci	bool "Debug TLB sanity"
58c2ecf20Sopenharmony_ci	depends on DEBUG_KERNEL && MMU
68c2ecf20Sopenharmony_ci	help
78c2ecf20Sopenharmony_ci	  Enable this to turn on TLB sanity check on each entry to userspace.
88c2ecf20Sopenharmony_ci	  This check can spot missing TLB invalidation/wrong PTE permissions/
98c2ecf20Sopenharmony_ci	  premature page freeing.
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci	  If unsure, say N.
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ciconfig LD_NO_RELAX
148c2ecf20Sopenharmony_ci	bool "Disable linker relaxation"
158c2ecf20Sopenharmony_ci	default y
168c2ecf20Sopenharmony_ci	help
178c2ecf20Sopenharmony_ci	  Enable this function to disable link-time optimizations.
188c2ecf20Sopenharmony_ci	  The default linker behavior is to combine identical literal
198c2ecf20Sopenharmony_ci	  values to reduce code size and remove unnecessary overhead from
208c2ecf20Sopenharmony_ci	  assembler-generated 'longcall' sequences.
218c2ecf20Sopenharmony_ci	  Enabling this option improves the link time but increases the
228c2ecf20Sopenharmony_ci	  code size, and possibly execution time.
238c2ecf20Sopenharmony_ci
248c2ecf20Sopenharmony_ciconfig S32C1I_SELFTEST
258c2ecf20Sopenharmony_ci	bool "Perform S32C1I instruction self-test at boot"
268c2ecf20Sopenharmony_ci	default y
278c2ecf20Sopenharmony_ci	help
288c2ecf20Sopenharmony_ci	  Enable this option to test S32C1I instruction behavior at boot.
298c2ecf20Sopenharmony_ci	  Correct operation of this instruction requires some cooperation from hardware
308c2ecf20Sopenharmony_ci	  external to the processor (such as bus bridge, bus fabric, or memory controller).
318c2ecf20Sopenharmony_ci	  It is easy to make wrong hardware configuration, this test should catch it early.
328c2ecf20Sopenharmony_ci
338c2ecf20Sopenharmony_ci	  Say 'N' on stable hardware.
348c2ecf20Sopenharmony_ci
358c2ecf20Sopenharmony_ciconfig PRINT_STACK_DEPTH
368c2ecf20Sopenharmony_ci	int "Stack depth to print" if DEBUG_KERNEL
378c2ecf20Sopenharmony_ci	default 64
388c2ecf20Sopenharmony_ci	help
398c2ecf20Sopenharmony_ci	  This option allows you to set the stack depth that the kernel
408c2ecf20Sopenharmony_ci	  prints in stack traces.
41