sh: Enable /proc/kcore support.
[linux-block.git] / arch / sh / Kconfig.debug
CommitLineData
1da177e4
LT
1menu "Kernel hacking"
2
3source "lib/Kconfig.debug"
4
5config 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
18config EARLY_SCIF_CONSOLE
19 bool "Use early SCIF console"
cad82448 20 depends on CPU_SH4 || CPU_SH2A && !SH_STANDARD_BIOS
1da177e4
LT
21
22config 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
d153ea88
PM
33config 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
40config 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
1da177e4
LT
49config KGDB
50 bool "Include KGDB kernel debugger"
2549b322 51 select FRAME_POINTER
1da177e4
LT
52 help
53 Include in-kernel hooks for kgdb, the Linux kernel source level
54 debugger. See <http://kgdb.sourceforge.net/> for more information.
55 Unless you are intending to debug the kernel, say N here.
56
57menu "KGDB configuration options"
58 depends on KGDB
59
60config MORE_COMPILE_OPTIONS
61 bool "Add any additional compile options"
62 help
63 If you want to add additional CFLAGS to the kernel build, enable this
64 option and then enter what you would like to add in the next question.
65 Note however that -g is already appended with the selection of KGDB.
66
67config COMPILE_OPTIONS
68 string "Additional compile arguments"
69 depends on MORE_COMPILE_OPTIONS
70
71config KGDB_NMI
72 bool "Enter KGDB on NMI"
73 default n
74
75config KGDB_THREAD
76 bool "Include KGDB thread support"
77 default y
78
79config SH_KGDB_CONSOLE
80 bool "Console messages through GDB"
81 default n
82
83config KGDB_SYSRQ
84 bool "Allow SysRq 'G' to enter KGDB"
85 default y
86
87config KGDB_KERNEL_ASSERTS
88 bool "Include KGDB kernel assertions"
89 default n
90
91comment "Serial port setup"
92
93config KGDB_DEFPORT
94 int "Port number (ttySCn)"
95 default "1"
96
97config KGDB_DEFBAUD
98 int "Baud rate"
99 default "115200"
100
101choice
102 prompt "Parity"
103 depends on KGDB
104 default KGDB_DEFPARITY_N
105
106config KGDB_DEFPARITY_N
107 bool "None"
108
109config KGDB_DEFPARITY_E
110 bool "Even"
111
112config KGDB_DEFPARITY_O
113 bool "Odd"
114
115endchoice
116
117choice
118 prompt "Data bits"
119 depends on KGDB
120 default KGDB_DEFBITS_8
121
122config KGDB_DEFBITS_8
123 bool "8"
124
125config KGDB_DEFBITS_7
126 bool "7"
127
128endchoice
129
130endmenu
131
1da177e4 132endmenu