[PATCH] allow xmon=on,off,early

Paul Mackerras paulus at samba.org
Wed Mar 16 14:14:04 EST 2005


Olaf Hering writes:

> 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;
> +	}

Where does this handle xmon=off?

Paul.



More information about the Linuxppc64-dev mailing list