diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/Kconfig.debug | 7 | ||||
-rw-r--r-- | arch/powerpc/kernel/udbg.c | 4 |
2 files changed, 11 insertions, 0 deletions
diff --git a/arch/powerpc/Kconfig.debug b/arch/powerpc/Kconfig.debug index 6a79fe43e229..d20ccf5f2ca9 100644 --- a/arch/powerpc/Kconfig.debug +++ b/arch/powerpc/Kconfig.debug | |||
@@ -151,6 +151,13 @@ config BOOTX_TEXT | |||
151 | 151 | ||
152 | config PPC_EARLY_DEBUG | 152 | config PPC_EARLY_DEBUG |
153 | bool "Early debugging (dangerous)" | 153 | bool "Early debugging (dangerous)" |
154 | help | ||
155 | Say Y to enable some early debugging facilities that may be available | ||
156 | for your processor/board combination. Those facilities are hacks | ||
157 | intended to debug problems early during boot, this should not be | ||
158 | enabled in a production kernel. | ||
159 | Note that enabling this will also cause the kernel default log level | ||
160 | to be pushed to max automatically very early during boot | ||
154 | 161 | ||
155 | choice | 162 | choice |
156 | prompt "Early debugging console" | 163 | prompt "Early debugging console" |
diff --git a/arch/powerpc/kernel/udbg.c b/arch/powerpc/kernel/udbg.c index d723070c9a33..eba148f2a31c 100644 --- a/arch/powerpc/kernel/udbg.c +++ b/arch/powerpc/kernel/udbg.c | |||
@@ -57,6 +57,10 @@ void __init udbg_early_init(void) | |||
57 | #elif defined(CONFIG_PPC_EARLY_DEBUG_CPM) | 57 | #elif defined(CONFIG_PPC_EARLY_DEBUG_CPM) |
58 | udbg_init_cpm(); | 58 | udbg_init_cpm(); |
59 | #endif | 59 | #endif |
60 | |||
61 | #ifdef CONFIG_PPC_EARLY_DEBUG | ||
62 | console_loglevel = 10; | ||
63 | #endif | ||
60 | } | 64 | } |
61 | 65 | ||
62 | /* udbg library, used by xmon et al */ | 66 | /* udbg library, used by xmon et al */ |