* [patch] Simple serial fix for idiots at the lilo prompt.
@ 2001-03-11 18:05 Roger Gammans
0 siblings, 0 replies; only message in thread
From: Roger Gammans @ 2001-03-11 18:05 UTC (permalink / raw)
To: linux-kernel
Hi
If you don't pay attention (yeah, I know) Its easy to write
kernel commond lines like 'console=ttyS0, console=.., etc'
The lack of a baud rate after the comma causes the kernel
to panic. The patch below will cause the kernel in treat the
non-existant baud rate specifier as the default without panicing.
--- ../linux-2.2+lvm/drivers/char/serial.c Sat Jun 10 16:04:13 2000
+++ drivers/char/serial.c Sun Mar 11 17:51:02 2001
@@ -3490,6 +3490,10 @@
case 9600:
default:
cflag |= B9600;
+ /*
+ * Set this to a sane value to prevent a divide error
+ */
+ baud = 9600;
break;
}
switch(bits) {
TTFN
--
Roger
Think of the mess on the carpet. Sensible people do all their
demon-summoning in the garage, which you can just hose down afterwards.
-- damerell@chiark.greenend.org.uk
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-03-11 18:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-11 18:05 [patch] Simple serial fix for idiots at the lilo prompt Roger Gammans
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®