1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0 21da177e4SLinus Torvalds 31da177e4SLinus Torvaldsconfig SH_STANDARD_BIOS 41da177e4SLinus Torvalds bool "Use LinuxSH standard BIOS" 51da177e4SLinus Torvalds help 61da177e4SLinus Torvalds Say Y here if your target has the gdb-sh-stub 71da177e4SLinus Torvalds package from www.m17n.org (or any conforming standard LinuxSH BIOS) 81da177e4SLinus Torvalds in FLASH or EPROM. The kernel will use standard BIOS calls during 91da177e4SLinus Torvalds boot for various housekeeping tasks (including calls to read and 101da177e4SLinus Torvalds write characters to a system console, get a MAC address from an 111da177e4SLinus Torvalds on-board Ethernet interface, and shut down the hardware). Note this 121da177e4SLinus Torvalds does not work with machines with an existing operating system in 131da177e4SLinus Torvalds mask ROM and no flash (WindowsCE machines fall in this category). 141da177e4SLinus Torvalds If unsure, say N. 151da177e4SLinus Torvalds 169f14b84aSPaul Mundtconfig STACK_DEBUG 17d153ea88SPaul Mundt bool "Check for stack overflows" 18c2bd1e18SRandy Dunlap depends on DEBUG_KERNEL && PRINTK 19d153ea88SPaul Mundt help 20d153ea88SPaul Mundt This option will cause messages to be printed if free stack space 219f14b84aSPaul Mundt drops below a certain limit. Saying Y here will add overhead to 229f14b84aSPaul Mundt every function call and will therefore incur a major 239f14b84aSPaul Mundt performance hit. Most users should say N. 24d153ea88SPaul Mundt 25*b7bde87bSGeert Uytterhoevenconfig EARLY_PRINTK 26*b7bde87bSGeert Uytterhoeven bool "Early printk" 27*b7bde87bSGeert Uytterhoeven depends on SH_STANDARD_BIOS 28*b7bde87bSGeert Uytterhoeven help 29*b7bde87bSGeert Uytterhoeven Say Y here to redirect kernel printk messages to the serial port 30*b7bde87bSGeert Uytterhoeven used by the SH-IPL bootloader, starting very early in the boot 31*b7bde87bSGeert Uytterhoeven process and ending when the kernel's serial console is initialised. 32*b7bde87bSGeert Uytterhoeven This option is only useful while porting the kernel to a new machine, 33*b7bde87bSGeert Uytterhoeven when the kernel may crash or hang before the serial console is 34*b7bde87bSGeert Uytterhoeven initialised. If unsure, say N. 35*b7bde87bSGeert Uytterhoeven 36a6a31139SPaul Mundtconfig 4KSTACKS 37a6a31139SPaul Mundt bool "Use 4Kb for kernel stacks instead of 8Kb" 38b817f7e0SPaul Mundt depends on DEBUG_KERNEL && (MMU || BROKEN) && !PAGE_SIZE_64KB 39a6a31139SPaul Mundt help 40a6a31139SPaul Mundt If you say Y here the kernel will use a 4Kb stacksize for the 41a6a31139SPaul Mundt kernel stack attached to each process/thread. This facilitates 42a6a31139SPaul Mundt running more threads on a system and also reduces the pressure 43a6a31139SPaul Mundt on the VM subsystem for higher order allocations. This option 44a6a31139SPaul Mundt will also use IRQ stacks to compensate for the reduced stackspace. 45a6a31139SPaul Mundt 46110ed282SPaul Mundtconfig IRQSTACKS 47110ed282SPaul Mundt bool "Use separate kernel stacks when processing interrupts" 4837744feeSArnd Bergmann depends on DEBUG_KERNEL && BROKEN 49110ed282SPaul Mundt help 50110ed282SPaul Mundt If you say Y here the kernel will use separate kernel stacks 51110ed282SPaul Mundt for handling hard and soft interrupts. This can help avoid 52110ed282SPaul Mundt overflowing the process kernel stacks. 53110ed282SPaul Mundt 545d2685d0SPaul Mundtconfig DUMP_CODE 555d2685d0SPaul Mundt bool "Show disassembly of nearby code in register dumps" 5637744feeSArnd Bergmann depends on DEBUG_KERNEL 575d2685d0SPaul Mundt default y if DEBUG_BUGVERBOSE 585d2685d0SPaul Mundt default n 595d2685d0SPaul Mundt help 605d2685d0SPaul Mundt This prints out a code trace of the instructions leading up to 615d2685d0SPaul Mundt the faulting instruction as a debugging aid. As this does grow 625d2685d0SPaul Mundt the kernel in size a bit, most users will want to say N here. 635d2685d0SPaul Mundt 645d2685d0SPaul Mundt Those looking for more verbose debugging output should say Y. 655d2685d0SPaul Mundt 66bd353861SMatt Flemingconfig DWARF_UNWINDER 67bd353861SMatt Fleming bool "Enable the DWARF unwinder for stacktraces" 68fda1bc53SRandy Dunlap depends on DEBUG_KERNEL 69bd353861SMatt Fleming select FRAME_POINTER 70bd353861SMatt Fleming default n 71bd353861SMatt Fleming help 72bd353861SMatt Fleming Enabling this option will make stacktraces more accurate, at 73bd353861SMatt Fleming the cost of an increase in overall kernel size. 74bd353861SMatt Fleming 75740a3e67SPaul Mundtconfig SH_NO_BSS_INIT 76740a3e67SPaul Mundt bool "Avoid zeroing BSS (to speed-up startup on suitable platforms)" 77740a3e67SPaul Mundt depends on DEBUG_KERNEL 78740a3e67SPaul Mundt default n 79740a3e67SPaul Mundt help 80740a3e67SPaul Mundt If running in painfully slow environments, such as an RTL 81740a3e67SPaul Mundt simulation or from remote memory via SHdebug, where the memory 8225985edcSLucas De Marchi can already be guaranteed to ber zeroed on boot, say Y. 83740a3e67SPaul Mundt 84740a3e67SPaul Mundt For all other cases, say N. If this option seems perplexing, or 85740a3e67SPaul Mundt you aren't sure, say N. 86740a3e67SPaul Mundt 87473d1cf4SPaul Mundtconfig MCOUNT 88473d1cf4SPaul Mundt def_bool y 89473d1cf4SPaul Mundt depends on STACK_DEBUG || FUNCTION_TRACER 90