sparc: Make '-p' boot option meaningful again.
authorDavid S. Miller <davem@davemloft.net>
Wed, 21 Sep 2011 19:48:06 +0000 (12:48 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Sep 2011 19:48:06 +0000 (12:48 -0700)
If "-p" is given on the command line, clear the CON_BOOT
flag for the initial early boot PROM console.

This is necessary to try and see crash messages that occur
between the registry of the VT console and the probing of
the first framebuffer or serial console.  During this time
no console messages are emitted because the VT console
registry (even if no backend is registered to it) removes
the early console if CON_BOOT is set.

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/setup_32.c
arch/sparc/kernel/setup_64.c

index d26e1f6c717aa1f5fd3dffe2689594e1bce3b29a..3e3e2914c70b87648fb3c139e000ace1c2b3b8df 100644 (file)
@@ -137,7 +137,7 @@ static void __init process_switch(char c)
                prom_halt();
                break;
        case 'p':
-               /* Just ignore, this behavior is now the default.  */
+               prom_early_console.flags &= ~CON_BOOT;
                break;
        default:
                printk("Unknown boot switch (-%c)\n", c);
index 4139289a25f464991037b3d0550a13e42af6072d..c965595aa7e968c8a28e0cfce8f8cd9158db3e0f 100644 (file)
@@ -106,7 +106,7 @@ static void __init process_switch(char c)
                prom_halt();
                break;
        case 'p':
-               /* Just ignore, this behavior is now the default.  */
+               prom_early_console.flags &= ~CON_BOOT;
                break;
        case 'P':
                /* Force UltraSPARC-III P-Cache on. */