]> err.no Git - linux-2.6/commitdiff
[IA64] Enable early console for Ski simulator
authorPeter Chubb <peterc@gelato.unsw.edu.au>
Thu, 16 Aug 2007 05:03:07 +0000 (15:03 +1000)
committerTony Luck <tony.luck@intel.com>
Fri, 17 Aug 2007 20:44:15 +0000 (13:44 -0700)
When using Ski to debug early startup, it's a bit of a pain not to
have printk.

This patch enables the simulated console very early.
It may be worth conditionalising on the command line... but this is
enough for now.

Signed-off-by: Peter Chubb <peterc@gelato.unsw.edu.au>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/kernel/setup.c

index cd9a37a552c3099a2de603d923e9d23984b3c347..407efea04bf5d9b761daea91281b8dff2479b312 100644 (file)
@@ -389,6 +389,13 @@ early_console_setup (char *cmdline)
        if (!efi_setup_pcdp_console(cmdline))
                earlycons++;
 #endif
+#ifdef CONFIG_HP_SIMSERIAL_CONSOLE
+       {
+               extern struct console hpsim_cons;
+               register_console(&hpsim_cons);
+               earlycons++;
+       }
+#endif
 
        return (earlycons) ? 0 : -1;
 }