Kconfig.debug 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. menu "Kernel hacking"
  2. config TRACE_IRQFLAGS_SUPPORT
  3. def_bool y
  4. source "lib/Kconfig.debug"
  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. config EARLY_SCIF_CONSOLE
  18. bool "Use early SCIF console"
  19. help
  20. This enables an early console using a fixed SCIF port. This can
  21. be used by platforms that are either not running the SH
  22. standard BIOS, or do not wish to use the BIOS callbacks for the
  23. serial I/O.
  24. config EARLY_SCIF_CONSOLE_PORT
  25. hex
  26. depends on EARLY_SCIF_CONSOLE
  27. default "0xffe00000" if CPU_SUBTYPE_SH7780 || CPU_SUBTYPE_SH7763
  28. default "0xffe00000" if CPU_SUBTYPE_SH7722 || CPU_SUBTYPE_SH7366
  29. default "0xffea0000" if CPU_SUBTYPE_SH7785
  30. default "0xfffe8000" if CPU_SUBTYPE_SH7203
  31. default "0xfffe9800" if CPU_SUBTYPE_SH7206 || CPU_SUBTYPE_SH7263
  32. default "0xf8420000" if CPU_SUBTYPE_SH7619
  33. default "0xa4400000" if CPU_SUBTYPE_SH7712 || CPU_SUBTYPE_SH7705
  34. default "0xa4430000" if CPU_SUBTYPE_SH7720 || CPU_SUBTYPE_SH7721
  35. default "0xffc30000" if CPU_SUBTYPE_SHX3
  36. default "0xffe80000" if CPU_SH4
  37. default "0x00000000"
  38. config EARLY_PRINTK
  39. bool "Early printk support"
  40. depends on SH_STANDARD_BIOS || EARLY_SCIF_CONSOLE
  41. help
  42. Say Y here to redirect kernel printk messages to the serial port
  43. used by the SH-IPL bootloader, starting very early in the boot
  44. process and ending when the kernel's serial console is initialised.
  45. This option is only useful porting the kernel to a new machine,
  46. when the kernel may crash or hang before the serial console is
  47. initialised. If unsure, say N.
  48. On devices that are running SH-IPL and want to keep the port
  49. initialization consistent while not using the BIOS callbacks,
  50. select both the EARLY_SCIF_CONSOLE and SH_STANDARD_BIOS, using
  51. the kernel command line option to toggle back and forth.
  52. config DEBUG_BOOTMEM
  53. depends on DEBUG_KERNEL
  54. bool "Debug BOOTMEM initialization"
  55. config DEBUG_STACKOVERFLOW
  56. bool "Check for stack overflows"
  57. depends on DEBUG_KERNEL && SUPERH32
  58. help
  59. This option will cause messages to be printed if free stack space
  60. drops below a certain limit.
  61. config DEBUG_STACK_USAGE
  62. bool "Stack utilization instrumentation"
  63. depends on DEBUG_KERNEL
  64. help
  65. Enables the display of the minimum amount of free stack which each
  66. task has ever had available in the sysrq-T and sysrq-P debug output.
  67. This option will slow down process creation somewhat.
  68. config 4KSTACKS
  69. bool "Use 4Kb for kernel stacks instead of 8Kb"
  70. depends on DEBUG_KERNEL
  71. help
  72. If you say Y here the kernel will use a 4Kb stacksize for the
  73. kernel stack attached to each process/thread. This facilitates
  74. running more threads on a system and also reduces the pressure
  75. on the VM subsystem for higher order allocations. This option
  76. will also use IRQ stacks to compensate for the reduced stackspace.
  77. config IRQSTACKS
  78. bool "Use separate kernel stacks when processing interrupts"
  79. depends on DEBUG_KERNEL && SUPERH32
  80. help
  81. If you say Y here the kernel will use separate kernel stacks
  82. for handling hard and soft interrupts. This can help avoid
  83. overflowing the process kernel stacks.
  84. config SH_KGDB
  85. bool "Include KGDB kernel debugger"
  86. select FRAME_POINTER
  87. select DEBUG_INFO
  88. depends on CPU_SH3 || CPU_SH4
  89. help
  90. Include in-kernel hooks for kgdb, the Linux kernel source level
  91. debugger. See <http://kgdb.sourceforge.net/> for more information.
  92. Unless you are intending to debug the kernel, say N here.
  93. menu "KGDB configuration options"
  94. depends on SH_KGDB
  95. config MORE_COMPILE_OPTIONS
  96. bool "Add any additional compile options"
  97. help
  98. If you want to add additional CFLAGS to the kernel build, enable this
  99. option and then enter what you would like to add in the next question.
  100. Note however that -g is already appended with the selection of KGDB.
  101. config COMPILE_OPTIONS
  102. string "Additional compile arguments"
  103. depends on MORE_COMPILE_OPTIONS
  104. config KGDB_NMI
  105. def_bool n
  106. prompt "Enter KGDB on NMI"
  107. config SH_KGDB_CONSOLE
  108. def_bool n
  109. prompt "Console messages through GDB"
  110. depends on !SERIAL_SH_SCI_CONSOLE && SERIAL_SH_SCI=y
  111. select SERIAL_CORE_CONSOLE
  112. config KGDB_SYSRQ
  113. def_bool y
  114. prompt "Allow SysRq 'G' to enter KGDB"
  115. depends on MAGIC_SYSRQ
  116. comment "Serial port setup"
  117. config KGDB_DEFPORT
  118. int "Port number (ttySCn)"
  119. default "1"
  120. config KGDB_DEFBAUD
  121. int "Baud rate"
  122. default "115200"
  123. choice
  124. prompt "Parity"
  125. depends on SH_KGDB
  126. default KGDB_DEFPARITY_N
  127. config KGDB_DEFPARITY_N
  128. bool "None"
  129. config KGDB_DEFPARITY_E
  130. bool "Even"
  131. config KGDB_DEFPARITY_O
  132. bool "Odd"
  133. endchoice
  134. choice
  135. prompt "Data bits"
  136. depends on SH_KGDB
  137. default KGDB_DEFBITS_8
  138. config KGDB_DEFBITS_8
  139. bool "8"
  140. config KGDB_DEFBITS_7
  141. bool "7"
  142. endchoice
  143. endmenu
  144. if SUPERH64
  145. config SH64_PROC_ASIDS
  146. bool "Debug: report ASIDs through /proc/asids"
  147. depends on PROC_FS
  148. config SH64_SR_WATCH
  149. bool "Debug: set SR.WATCH to enable hardware watchpoints and trace"
  150. config POOR_MANS_STRACE
  151. bool "Debug: enable rudimentary strace facility"
  152. help
  153. This option allows system calls to be traced to the console. It also
  154. aids in detecting kernel stack underflow. It is useful for debugging
  155. early-userland problems (e.g. init incurring fatal exceptions.)
  156. config SH_ALPHANUMERIC
  157. bool "Enable debug outputs to on-board alphanumeric display"
  158. depends on SH_CAYMAN
  159. config SH_NO_BSS_INIT
  160. bool "Avoid zeroing BSS (to speed-up startup on suitable platforms)"
  161. endif
  162. endmenu