| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | menu "Kernel hacking" | 
|  | 2 |  | 
|  | 3 | source "lib/Kconfig.debug" | 
|  | 4 |  | 
|  | 5 | config SH_STANDARD_BIOS | 
|  | 6 | bool "Use LinuxSH standard BIOS" | 
|  | 7 | help | 
|  | 8 | Say Y here if your target has the gdb-sh-stub | 
|  | 9 | package from www.m17n.org (or any conforming standard LinuxSH BIOS) | 
|  | 10 | in FLASH or EPROM.  The kernel will use standard BIOS calls during | 
|  | 11 | boot for various housekeeping tasks (including calls to read and | 
|  | 12 | write characters to a system console, get a MAC address from an | 
|  | 13 | on-board Ethernet interface, and shut down the hardware).  Note this | 
|  | 14 | does not work with machines with an existing operating system in | 
|  | 15 | mask ROM and no flash (WindowsCE machines fall in this category). | 
|  | 16 | If unsure, say N. | 
|  | 17 |  | 
|  | 18 | config EARLY_SCIF_CONSOLE | 
|  | 19 | bool "Use early SCIF console" | 
| Paul Mundt | cad8244 | 2006-01-16 22:14:19 -0800 | [diff] [blame] | 20 | depends on CPU_SH4 || CPU_SH2A && !SH_STANDARD_BIOS | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 21 |  | 
|  | 22 | config EARLY_PRINTK | 
|  | 23 | bool "Early printk support" | 
|  | 24 | depends on SH_STANDARD_BIOS || EARLY_SCIF_CONSOLE | 
|  | 25 | help | 
|  | 26 | Say Y here to redirect kernel printk messages to the serial port | 
|  | 27 | used by the SH-IPL bootloader, starting very early in the boot | 
|  | 28 | process and ending when the kernel's serial console is initialised. | 
|  | 29 | This option is only useful porting the kernel to a new machine, | 
|  | 30 | when the kernel may crash or hang before the serial console is | 
|  | 31 | initialised. If unsure, say N. | 
|  | 32 |  | 
| Paul Mundt | d153ea8 | 2006-09-27 18:20:16 +0900 | [diff] [blame] | 33 | config DEBUG_STACKOVERFLOW | 
|  | 34 | bool "Check for stack overflows" | 
|  | 35 | depends on DEBUG_KERNEL | 
|  | 36 | help | 
|  | 37 | This option will cause messages to be printed if free stack space | 
|  | 38 | drops below a certain limit. | 
|  | 39 |  | 
|  | 40 | config DEBUG_STACK_USAGE | 
|  | 41 | bool "Stack utilization instrumentation" | 
|  | 42 | depends on DEBUG_KERNEL | 
|  | 43 | help | 
|  | 44 | Enables the display of the minimum amount of free stack which each | 
|  | 45 | task has ever had available in the sysrq-T and sysrq-P debug output. | 
|  | 46 |  | 
|  | 47 | This option will slow down process creation somewhat. | 
|  | 48 |  | 
| Paul Mundt | a6a31139 | 2006-09-27 18:22:14 +0900 | [diff] [blame] | 49 | config 4KSTACKS | 
|  | 50 | bool "Use 4Kb for kernel stacks instead of 8Kb" | 
|  | 51 | depends on DEBUG_KERNEL | 
|  | 52 | help | 
|  | 53 | If you say Y here the kernel will use a 4Kb stacksize for the | 
|  | 54 | kernel stack attached to each process/thread. This facilitates | 
|  | 55 | running more threads on a system and also reduces the pressure | 
|  | 56 | on the VM subsystem for higher order allocations. This option | 
|  | 57 | will also use IRQ stacks to compensate for the reduced stackspace. | 
|  | 58 |  | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 59 | config KGDB | 
|  | 60 | bool "Include KGDB kernel debugger" | 
| Paul Mundt | 2549b32 | 2006-09-27 16:22:33 +0900 | [diff] [blame] | 61 | select FRAME_POINTER | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 62 | help | 
|  | 63 | Include in-kernel hooks for kgdb, the Linux kernel source level | 
|  | 64 | debugger.  See <http://kgdb.sourceforge.net/> for more information. | 
|  | 65 | Unless you are intending to debug the kernel, say N here. | 
|  | 66 |  | 
|  | 67 | menu "KGDB configuration options" | 
|  | 68 | depends on KGDB | 
|  | 69 |  | 
|  | 70 | config MORE_COMPILE_OPTIONS | 
|  | 71 | bool "Add any additional compile options" | 
|  | 72 | help | 
|  | 73 | If you want to add additional CFLAGS to the kernel build, enable this | 
|  | 74 | option and then enter what you would like to add in the next question. | 
|  | 75 | Note however that -g is already appended with the selection of KGDB. | 
|  | 76 |  | 
|  | 77 | config COMPILE_OPTIONS | 
|  | 78 | string "Additional compile arguments" | 
|  | 79 | depends on MORE_COMPILE_OPTIONS | 
|  | 80 |  | 
|  | 81 | config KGDB_NMI | 
|  | 82 | bool "Enter KGDB on NMI" | 
|  | 83 | default n | 
|  | 84 |  | 
|  | 85 | config KGDB_THREAD | 
|  | 86 | bool "Include KGDB thread support" | 
|  | 87 | default y | 
|  | 88 |  | 
|  | 89 | config SH_KGDB_CONSOLE | 
|  | 90 | bool "Console messages through GDB" | 
|  | 91 | default n | 
|  | 92 |  | 
|  | 93 | config KGDB_SYSRQ | 
|  | 94 | bool "Allow SysRq 'G' to enter KGDB" | 
|  | 95 | default y | 
|  | 96 |  | 
|  | 97 | config KGDB_KERNEL_ASSERTS | 
|  | 98 | bool "Include KGDB kernel assertions" | 
|  | 99 | default n | 
|  | 100 |  | 
|  | 101 | comment "Serial port setup" | 
|  | 102 |  | 
|  | 103 | config KGDB_DEFPORT | 
|  | 104 | int "Port number (ttySCn)" | 
|  | 105 | default "1" | 
|  | 106 |  | 
|  | 107 | config KGDB_DEFBAUD | 
|  | 108 | int "Baud rate" | 
|  | 109 | default "115200" | 
|  | 110 |  | 
|  | 111 | choice | 
|  | 112 | prompt "Parity" | 
|  | 113 | depends on KGDB | 
|  | 114 | default KGDB_DEFPARITY_N | 
|  | 115 |  | 
|  | 116 | config KGDB_DEFPARITY_N | 
|  | 117 | bool "None" | 
|  | 118 |  | 
|  | 119 | config KGDB_DEFPARITY_E | 
|  | 120 | bool "Even" | 
|  | 121 |  | 
|  | 122 | config KGDB_DEFPARITY_O | 
|  | 123 | bool "Odd" | 
|  | 124 |  | 
|  | 125 | endchoice | 
|  | 126 |  | 
|  | 127 | choice | 
|  | 128 | prompt "Data bits" | 
|  | 129 | depends on KGDB | 
|  | 130 | default KGDB_DEFBITS_8 | 
|  | 131 |  | 
|  | 132 | config KGDB_DEFBITS_8 | 
|  | 133 | bool "8" | 
|  | 134 |  | 
|  | 135 | config KGDB_DEFBITS_7 | 
|  | 136 | bool "7" | 
|  | 137 |  | 
|  | 138 | endchoice | 
|  | 139 |  | 
|  | 140 | endmenu | 
|  | 141 |  | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 142 | endmenu |