Date: Wed, 22 Dec 1999 18:42:06 +0100 From: Martin Cracauer <cracauer@cons.org> To: Theo van Klaveren <havoc@Cal30B054.student.utwente.nl> Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Question about GLIDE... Message-ID: <19991222184206.A4478@cons.org> In-Reply-To: <Pine.BSF.4.21.9912221811070.95260-100000@Cal30B054.student.utwente.nl>; from Theo van Klaveren on Wed, Dec 22, 1999 at 06:19:42PM %2B0100 References: <Pine.BSF.4.21.9912221811070.95260-100000@Cal30B054.student.utwente.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
In <Pine.BSF.4.21.9912221811070.95260-100000@Cal30B054.student.utwente.nl>, Theo van Klaveren wrote:
> My question is about this particular piece of code in
> swlibs/fxpci/pcilib/fxlinux.c, around line 70:
>
> if (iopl(3)<0) {
> pciErrorCode = PCI_ERR_NO_IO_PERM;
> return FXFALSE;
> }
>
> Does anyone know what 'iopl(3)' is supposed to do,
int iopl(int level);
iopl changes the I/O privilege level of the current pro
cess, as specified in level.
This call is necessary to allow 8514-compatible X servers
to run under Linux. Since these X servers require access
to all 65536 I/O ports, the ioperm call is not sufficient.
In addition to granting unrestricted I/O port access, run
ning at a higher I/O privilege level also allows the pro
cess to disable interrupts. This will probably crash the
system, and is not recommended.
> and what it's equivalent on FreeBSD is (if at
> all available)?
See /usr/src/sys/i386/linux how it emulates the call.
> The code this is in is about opening the /dev/3dfx device
> (which is not available for FreeBSD so it'll fail anyway),
> so I _could_ just remove it, but I'm not so certain...
/dev/3dfx is a special device to allow non-root binaries to access the
3dfx card. Not needed if things run as root.
> Also, IANAL, so could anyone tell me if the 3DFX license
> permits me to publish my patches under a BSD-style license?
Didn't read the license.
Martin
--
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Martin Cracauer <cracauer@cons.org> http://www.cons.org/cracauer/
Tel.: (private) +4940 5221829 Fax.: (private) +4940 5228536
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991222184206.A4478>
