Kconfig.debug 3.7 KB

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