home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- 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
- From: hlu@yoda.eecs.wsu.edu (H.J. Lu)
- Subject: Re: io.h/iopl
- Message-ID: <1992Sep1.162153.14520@serval.net.wsu.edu>
- Sender: news@serval.net.wsu.edu (USENET News System)
- Organization: Washington State University
- References: <1992Sep1.123648.18859@cbnewsd.cb.att.com>
- Date: Tue, 1 Sep 92 16:21:53 GMT
- Lines: 23
-
- In article <1992Sep1.123648.18859@cbnewsd.cb.att.com> asmith@cbnewsd.cb.att.com (arthur.c.smith) writes:
- >Hi,
- > I have been working on an S3 driver for X and have an 80X86 asm program
- >under dos that will setup the S3 chip correctly (and uses the enhanced
- >rectangle fill command to clear the screen 8-)). I am trying to port this
- >over to Linux. I am having two problems. 1) In trying to use sys_iopl()
- >I tried to write it as _syscall1(void,110,int,3) and include unistd.h
- >(and __LIBRARY__ defined). I get an error when this compiles. Is there
- >a better way to do this? 2) Trying to port to C: When I include /usr/src/linux/
-
- Yes. Use gcc 2.2.2d which has iopl ().
-
- >include/asm/io.h and use outb I get undefined _outb referenced in .text. In
- >looking at io.h it appears as if the outb function is defined as extern but
- >is also defined in io.h???
-
- Compile it with -On (n >= 1).
-
- > Thanks for any help,
- > Art asmith@cbnewsd.att.com
- >
-
- H.J.
-