home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!news.funet.fi!hydra!klaava!hyvatti
- From: hyvatti@klaava.Helsinki.FI (Jaakko Hyvatti)
- Newsgroups: comp.os.linux
- Subject: Re: IRQs and 0.96c PL2. I'm still confused!
- Message-ID: <1992Jul25.044938.9442@klaava.Helsinki.FI>
- Date: 25 Jul 92 04:49:38 GMT
- References: <p2hmsc_.james@netcom.com>
- Organization: University of Helsinki
- Lines: 50
-
- In article <p2hmsc_.james@netcom.com> james@netcom.com (James L. Paul) writes:
- ...
- >Linux does this no matter how I have the IRQs set up. Why, and how
- >do I fix it?
-
- At bootup linux uses 'standard' serial configurations. If you want to
- alter this confguration, you've got to get setserial.tar.Z by Rick Sladkey
- (jrs@world.std.com) from banjo.concert.net or tsx-11.mit.edu or
- somewhere else.
-
- There is also a bug in 0.96c-pl2 which prevents one from configuring
- serial devices that don't have the standard port addresses. This
- shouldn't affect you, but in case someone else having that problem
- missed my first post:
-
- *** linux/kernel/chr_drv/serial.c.OLD Sun Jul 19 08:45:41 1992
- --- linux/kernel/chr_drv/serial.c Sun Jul 19 08:45:44 1992
- ***************
- *** 313,318 ****
- --- 313,320 ----
-
- static void startup(unsigned short port)
- {
- + int count = 0;
- +
- outb_p(0x03,port+3); /* reset DLAB */
- outb_p(0x0f,port+4); /* set DTR,RTS, OUT_2 */
- outb_p(0x0f,port+1); /* enable all intrs */
- ***************
- *** 322,328 ****
- inb_p(port+5);
- do { /* drain all of the stuck characters out of the port */
- inb_p(port+0);
- ! } while (inb_p(port+5) & 1 == 1);
- inb_p(port+2);
- inb_p(port+5);
- }
- --- 324,330 ----
- inb_p(port+5);
- do { /* drain all of the stuck characters out of the port */
- inb_p(port+0);
- ! } while (inb_p(port+5) & 1 == 1 && ++count < 16);
- inb_p(port+2);
- inb_p(port+5);
- }
-
- --
- Jaakko Hyv{tti Jaakko.Hyvatti@Helsinki.FI
- Karstulantie 8 B 30 hyvatti@plootu.Helsinki.FI
- 00550 Helsinki, Finland +358-0-701 7810, -692 7466 (work)
-