home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / linux / 9589 < prev    next >
Encoding:
Text File  |  1992-09-01  |  1.4 KB  |  35 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!usenet.coe.montana.edu!news.u.washington.edu!serval!yoda.eecs.wsu.edu!hlu
  3. From: hlu@yoda.eecs.wsu.edu (H.J. Lu)
  4. Subject: Re: io.h/iopl
  5. Message-ID: <1992Sep1.162153.14520@serval.net.wsu.edu>
  6. Sender: news@serval.net.wsu.edu (USENET News System)
  7. Organization: Washington State University
  8. References: <1992Sep1.123648.18859@cbnewsd.cb.att.com>
  9. Date: Tue, 1 Sep 92 16:21:53 GMT
  10. Lines: 23
  11.  
  12. In article <1992Sep1.123648.18859@cbnewsd.cb.att.com> asmith@cbnewsd.cb.att.com (arthur.c.smith) writes:
  13. >Hi,
  14. > I have been working on an S3 driver for X and have an 80X86 asm program
  15. >under dos that will setup the S3 chip correctly (and uses the enhanced
  16. >rectangle fill command to clear the screen 8-)). I am trying to port this
  17. >over to Linux. I am having two problems. 1) In trying to use sys_iopl()
  18. >I tried to write it as _syscall1(void,110,int,3) and include unistd.h
  19. >(and __LIBRARY__ defined). I get an error when this compiles. Is there
  20. >a better way to do this? 2) Trying to port to C: When I include /usr/src/linux/
  21.  
  22. Yes. Use gcc 2.2.2d which has iopl ().
  23.  
  24. >include/asm/io.h and use outb I get undefined _outb referenced in .text. In
  25. >looking at io.h it appears as if the outb function is defined as extern but
  26. >is also defined in io.h???
  27.  
  28. Compile it with -On (n >= 1).
  29.  
  30. >        Thanks for any help,
  31. >                       Art  asmith@cbnewsd.att.com
  32. >
  33.  
  34. H.J.
  35.