public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* Enable early console for Ski simulator
@ 2007-08-16  5:03 Peter Chubb
  2007-08-20 13:24 ` Jes Sorensen
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Peter Chubb @ 2007-08-16  5:03 UTC (permalink / raw)
  To: linux-ia64


When using Ski to debug early startup, it's a bit of a pain not to
have printk.

This patch agains 2.6.23-rc? 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>

diff --git a/arch/ia64/kernel/setup.c b/arch/ia64/kernel/setup.c
index eaa6a24..a8ada00 100644
--- a/arch/ia64/kernel/setup.c
+++ b/arch/ia64/kernel/setup.c
@@ -394,6 +394,13 @@ early_console_setup (char *cmdline)
 	if (!early_serial_console_init(cmdline))
 		earlycons++;
 #endif
+#ifdef CONFIG_HP_SIMSERIAL_CONSOLE
+	{
+		extern struct console hpsim_cons;
+		register_console(&hpsim_cons);
+		earlycons++;
+	}
+#endif
 
 	return (earlycons) ? 0 : -1;
 }

--
Dr Peter Chubb  http://www.gelato.unsw.edu.au  peterc AT gelato.unsw.edu.au
http://www.ertos.nicta.com.au           ERTOS within National ICT Australia

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-08-21  3:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-16  5:03 Enable early console for Ski simulator Peter Chubb
2007-08-20 13:24 ` Jes Sorensen
2007-08-21  1:59 ` Peter Chubb
2007-08-21  3:51 ` Peter Chubb

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox