[PATCH] allow xmon=on,off,early
Olaf Hering
olh at suse.de
Wed Mar 16 08:02:46 EST 2005
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 <olh at suse.de>
Index: linux-2.6.11-olh/arch/ppc64/kernel/setup.c
===================================================================
--- linux-2.6.11-olh.orig/arch/ppc64/kernel/setup.c
+++ linux-2.6.11-olh/arch/ppc64/kernel/setup.c
@@ -1365,6 +1365,12 @@ EXPORT_SYMBOL(check_legacy_ioport);
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))
+ return 0;
+ }
xmon_init();
debugger(NULL);
More information about the Linuxppc64-dev
mailing list