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.

Signed-off-by: Olaf Hering <[EMAIL PROTECTED]>
Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]>

diff -urN linux-2.5/arch/ppc64/kernel/setup.c test/arch/ppc64/kernel/setup.c
--- linux-2.5/arch/ppc64/kernel/setup.c 2005-03-07 08:21:53.000000000 +1100
+++ test/arch/ppc64/kernel/setup.c      2005-03-17 21:49:31.000000000 +1100
@@ -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);
 
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to