From owner-freebsd-questions Tue Nov 30 10:21:55 1999 Delivered-To: freebsd-questions@freebsd.org Received: from federation.addy.com (federation.addy.com [208.11.142.20]) by hub.freebsd.org (Postfix) with ESMTP id 45272159A1 for ; Tue, 30 Nov 1999 10:21:53 -0800 (PST) (envelope-from fbsdlist@federation.addy.com) Received: from localhost (fbsdlist@localhost) by federation.addy.com (8.8.5/8.6.12) with SMTP id NAA08444; Tue, 30 Nov 1999 13:21:49 -0500 (EST) Date: Tue, 30 Nov 1999 13:21:49 -0500 (EST) From: Cliff Addy To: Dan Nelson Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Reading an IO address In-Reply-To: <19991130000346.A47191@dan.emsphone.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 30 Nov 1999, Dan Nelson wrote: > In the last episode (Nov 29), Cliff Addy said: > > val=inb(0x180) > > > > the program coredumps with a "Bus error" message. Interestingly enough, I > > I/O access is restricted to root. In addition, you either need to open > /dev/io (to get unrestricted access to all IO ports), or call > i386_set_ioperm() with the port range you want to fiddle with. "man io" > or "man i386_set_ioperm" for more info. That did the trick, thanks! Cliff To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message