home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / linux / 6668 < prev    next >
Encoding:
Internet Message Format  |  1992-07-25  |  1.9 KB

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