All of lore.kernel.org
 help / color / mirror / Atom feed
* [parisc-linux] Console
@ 2000-12-21 21:18 Matthew Wilcox
  2000-12-21 21:28 ` Matthew Wilcox
  0 siblings, 1 reply; 6+ messages in thread
From: Matthew Wilcox @ 2000-12-21 21:18 UTC (permalink / raw)
  To: parisc-linux; +Cc: tytso


We were doing some very dubious things with our console; I hope I've now
fixed them.

The problem was that we can't output from the serial port until we've
done all the GSC and LASI setup, which is very late in the boot sequence.
The current serial console code just guesses, and gets lucky on x86, that
it can output bytes to the serial port.  This crashes for us because it
assumes it can use outb when it should be using gsc_readb.

So I've moved the call to initialise the serial console to the serial
driver, after it does its own setup.  This makes much more sense (the
serial console code might now be simplifiable, I haven't checked).

Of course, we'd like to see a bit of output before we get to that point.
So we still register the PDC console, crappy as it is, very early on
in the boot sequence (slightly later now than before, but it wasn't
used up until that point anyway, because none of the console system
was activated).

However, if you just do that and don't frob the dmesg log (nasty, nasty!),
you get everything twice.  So I invented a new console flag, CON_BOOT.
the register_console() interface notices that the previous console was
CON_BOOT, removes it and doesn't display the log to that point as it
assumes you've already seen it on the boot console.

I hope other architectures can take advantage of this small piece of
infrastructure.  Ted, are you the console maintainer?

-- 
Revolutions do not require corporate support.

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

end of thread, other threads:[~2000-12-31  0:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-12-21 21:18 [parisc-linux] Console Matthew Wilcox
2000-12-21 21:28 ` Matthew Wilcox
2000-12-22 11:19   ` Richard Hirst
2000-12-22 13:38     ` Matthew Wilcox
2000-12-23 13:37   ` Matthew Wilcox
2000-12-31  0:07     ` Matthew Wilcox

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.