Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Nov 1999 13:21:49 -0500 (EST)
From:      Cliff Addy <fbsdlist@federation.addy.com>
To:        Dan Nelson <dnelson@emsphone.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Reading an IO address
Message-ID:  <Pine.BSF.3.95q.991130132123.7513A-100000@federation.addy.com>
In-Reply-To: <19991130000346.A47191@dan.emsphone.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95q.991130132123.7513A-100000>