Kconfig.debug 5.9 KB

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