Kconfig.debug 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. menu "Kernel hacking"
  2. source "lib/Kconfig.debug"
  3. config STRICT_DEVMEM
  4. bool "Filter access to /dev/mem"
  5. depends on MMU
  6. ---help---
  7. If this option is disabled, you allow userspace (root) access to all
  8. of memory, including kernel and userspace memory. Accidental
  9. access to this is obviously disastrous, but specific access can
  10. be used by people debugging the kernel.
  11. If this option is switched on, the /dev/mem file only allows
  12. userspace access to memory mapped peripherals.
  13. If in doubt, say Y.
  14. config EARLY_PRINTK
  15. def_bool DEBUG_OCD
  16. help
  17. Write kernel log output directly into the ocd or to a serial port.
  18. This is useful for kernel debugging when your machine crashes very
  19. early before the console code is initialized. For normal operation
  20. it is not recommended because it looks ugly and doesn't cooperate
  21. with klogd/syslogd or the X server. You should normally N here,
  22. unless you want to debug such a crash.
  23. # These options are only for real kernel hackers who want to get their hands dirty.
  24. config DEBUG_LL
  25. bool "Kernel low-level debugging functions"
  26. depends on DEBUG_KERNEL
  27. help
  28. Say Y here to include definitions of printascii, printch, printhex
  29. in the kernel. This is helpful if you are debugging code that
  30. executes before the console is initialized.
  31. config DEBUG_OCD
  32. bool "Kernel low-level debugging via On-Chip-Debugger"
  33. depends on DEBUG_LL
  34. default y
  35. help
  36. Say Y here if you want the debug print routines to direct their
  37. output to the UniCore On-Chip-Debugger channel using CP #1.
  38. endmenu