From: hlu@yoda.eecs.wsu.edu (H.J. Lu) Subject: Re: io.h/iopl Date: Tue, 1 Sep 1992 16:21:53 GMT
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.