Skip to contentSkip to conversation

PPC64 allow xmon=on,off,early

PATCH New Paul Mackerras 1 participant 1 message Mar 17, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PPC64 allow xmon=on,off,early

allow 'xmon' or 'xmon=early' to enter xmon very early during boot. allow 'xmon=on' to just enable it, or 'xmon=off' to disable it.

arch/ppc64/kernel/setup.c +6 -0
diff -urN linux-2.5/arch/ppc64/kernel/setup.c test/arch/ppc64/kernel/setup.c
@@ -1361,6 +1361,12 @@
 static int __init early_xmon(char *p)
 {
 	/* ensure xmon is enabled */
+	if (p) {
+		if (strncmp(p, "on", 2) == 0)
+			xmon_init();
+		if (strncmp(p, "early", 5) != 0)
+			return 0;
+	}
 	xmon_init();
 	debugger(NULL);