aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/setup-common.c
diff options
context:
space:
mode:
authorOlaf Hering <olaf@aepfle.de>2006-09-08 10:29:21 -0400
committerPaul Mackerras <paulus@samba.org>2006-09-13 04:39:53 -0400
commit26c8af5f01dfb91f709cc2ba07fb650949aae13e (patch)
treedbaa11641da7348bb2fbde3c75429449c7ca4104 /arch/powerpc/kernel/setup-common.c
parent87fd7724d4022913ae8dbee3ed55cd04f2c316a6 (diff)
[POWERPC] print backtrace when entering xmon
xmon does not print a backtrace per default. This is bad on systems with USB keyboard, the most needed info about the crash is lost. print a backtrace during the very first xmon entry. Booting with xmon=nobt disables the autobacktrace functionality. Signed-off-by: Olaf Hering <olaf@aepfle.de> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel/setup-common.c')
-rw-r--r--arch/powerpc/kernel/setup-common.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/setup-common.c b/arch/powerpc/kernel/setup-common.c
index d57930d86faa..465e7435efbc 100644
--- a/arch/powerpc/kernel/setup-common.c
+++ b/arch/powerpc/kernel/setup-common.c
@@ -441,6 +441,8 @@ void __init smp_setup_cpu_maps(void)
441 441
442int __initdata do_early_xmon; 442int __initdata do_early_xmon;
443#ifdef CONFIG_XMON 443#ifdef CONFIG_XMON
444extern int xmon_no_auto_backtrace;
445
444static int __init early_xmon(char *p) 446static int __init early_xmon(char *p)
445{ 447{
446 /* ensure xmon is enabled */ 448 /* ensure xmon is enabled */
@@ -449,6 +451,8 @@ static int __init early_xmon(char *p)
449 xmon_init(1); 451 xmon_init(1);
450 if (strncmp(p, "off", 3) == 0) 452 if (strncmp(p, "off", 3) == 0)
451 xmon_init(0); 453 xmon_init(0);
454 if (strncmp(p, "nobt", 4) == 0)
455 xmon_no_auto_backtrace = 1;
452 if (strncmp(p, "early", 5) != 0) 456 if (strncmp(p, "early", 5) != 0)
453 return 0; 457 return 0;
454 } 458 }