Kconfig.debug 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. menu "Kernel hacking"
  2. config TRACE_IRQFLAGS_SUPPORT
  3. bool
  4. default y
  5. source "lib/Kconfig.debug"
  6. config SH_STANDARD_BIOS
  7. bool "Use LinuxSH standard BIOS"
  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 "SCIF port for early console"
  27. depends on EARLY_SCIF_CONSOLE
  28. default "0xffe00000" if CPU_SUBTYPE_SH7780
  29. default "0xfffe9800" if CPU_SUBTYPE_SH72060
  30. default "0xffe80000" if CPU_SH4
  31. config EARLY_PRINTK
  32. bool "Early printk support"
  33. depends on SH_STANDARD_BIOS || EARLY_SCIF_CONSOLE
  34. help
  35. Say Y here to redirect kernel printk messages to the serial port
  36. used by the SH-IPL bootloader, starting very early in the boot
  37. process and ending when the kernel's serial console is initialised.
  38. This option is only useful porting the kernel to a new machine,
  39. when the kernel may crash or hang before the serial console is
  40. initialised. If unsure, say N.
  41. On devices that are running SH-IPL and want to keep the port
  42. initialization consistent while not using the BIOS callbacks,
  43. select both the EARLY_SCIF_CONSOLE and SH_STANDARD_BIOS, using
  44. the kernel command line option to toggle back and forth.
  45. config DEBUG_STACKOVERFLOW
  46. bool "Check for stack overflows"
  47. depends on DEBUG_KERNEL
  48. help
  49. This option will cause messages to be printed if free stack space
  50. drops below a certain limit.
  51. config DEBUG_STACK_USAGE
  52. bool "Stack utilization instrumentation"
  53. depends on DEBUG_KERNEL
  54. help
  55. Enables the display of the minimum amount of free stack which each
  56. task has ever had available in the sysrq-T and sysrq-P debug output.
  57. This option will slow down process creation somewhat.
  58. config 4KSTACKS
  59. bool "Use 4Kb for kernel stacks instead of 8Kb"
  60. depends on DEBUG_KERNEL
  61. help
  62. If you say Y here the kernel will use a 4Kb stacksize for the
  63. kernel stack attached to each process/thread. This facilitates
  64. running more threads on a system and also reduces the pressure
  65. on the VM subsystem for higher order allocations. This option
  66. will also use IRQ stacks to compensate for the reduced stackspace.
  67. config KGDB
  68. bool "Include KGDB kernel debugger"
  69. select FRAME_POINTER
  70. help
  71. Include in-kernel hooks for kgdb, the Linux kernel source level
  72. debugger. See <http://kgdb.sourceforge.net/> for more information.
  73. Unless you are intending to debug the kernel, say N here.
  74. menu "KGDB configuration options"
  75. depends on KGDB
  76. config MORE_COMPILE_OPTIONS
  77. bool "Add any additional compile options"
  78. help
  79. If you want to add additional CFLAGS to the kernel build, enable this
  80. option and then enter what you would like to add in the next question.
  81. Note however that -g is already appended with the selection of KGDB.
  82. config COMPILE_OPTIONS
  83. string "Additional compile arguments"
  84. depends on MORE_COMPILE_OPTIONS
  85. config KGDB_NMI
  86. bool "Enter KGDB on NMI"
  87. default n
  88. config KGDB_THREAD
  89. bool "Include KGDB thread support"
  90. default y
  91. config SH_KGDB_CONSOLE
  92. bool "Console messages through GDB"
  93. default n
  94. config KGDB_SYSRQ
  95. bool "Allow SysRq 'G' to enter KGDB"
  96. default y
  97. config KGDB_KERNEL_ASSERTS
  98. bool "Include KGDB kernel assertions"
  99. default n
  100. comment "Serial port setup"
  101. config KGDB_DEFPORT
  102. int "Port number (ttySCn)"
  103. default "1"
  104. config KGDB_DEFBAUD
  105. int "Baud rate"
  106. default "115200"
  107. choice
  108. prompt "Parity"
  109. depends on KGDB
  110. default KGDB_DEFPARITY_N
  111. config KGDB_DEFPARITY_N
  112. bool "None"
  113. config KGDB_DEFPARITY_E
  114. bool "Even"
  115. config KGDB_DEFPARITY_O
  116. bool "Odd"
  117. endchoice
  118. choice
  119. prompt "Data bits"
  120. depends on KGDB
  121. default KGDB_DEFBITS_8
  122. config KGDB_DEFBITS_8
  123. bool "8"
  124. config KGDB_DEFBITS_7
  125. bool "7"
  126. endchoice
  127. endmenu
  128. endmenu