From owner-freebsd-hackers Wed Dec 22 9:42:20 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from knight.cons.org (knight.cons.org [194.233.237.195]) by hub.freebsd.org (Postfix) with ESMTP id 338FD15065 for ; Wed, 22 Dec 1999 09:42:17 -0800 (PST) (envelope-from cracauer@knight.cons.org) Received: (from cracauer@localhost) by knight.cons.org (8.9.3/8.9.3) id SAA04505; Wed, 22 Dec 1999 18:42:06 +0100 (CET) Date: Wed, 22 Dec 1999 18:42:06 +0100 From: Martin Cracauer To: Theo van Klaveren Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Question about GLIDE... Message-ID: <19991222184206.A4478@cons.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.1i In-Reply-To: ; from Theo van Klaveren on Wed, Dec 22, 1999 at 06:19:42PM +0100 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In , 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 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