Date: Wed, 31 May 2000 19:29:31 +0100 From: Ben Smithurst <ben@scientia.demon.co.uk> To: Mac <mac@ngo.org.uk> Cc: freebsd-questions@freebsd.org Subject: Re: Writing a value to an IO (mem mapped) port Message-ID: <20000531192931.Q99925@strontium.scientia.demon.co.uk> In-Reply-To: <200005311747.SAA19114@ngo.org.uk> References: <200005311747.SAA19114@ngo.org.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
Mac wrote: > However under FreeBSD, although the function seems to exist to do this > in /usr/include/machine/cpufunc.h, I get Bus Errors every time I try. > > fred.c looks like this:- > > #include <sys/types.h> > #include <machine/cpufunc.h> > > main() > { > outb(0x181,0) > } > > And compiles OKay. "man i386_set_ioperm" might help you. I'm guessing you'll want to call i386_set_ioperm(0x181, 1, 1); before the call to outb(), but as I've never used this function I can't be sure exactly. -- Ben Smithurst / ben@scientia.demon.co.uk / PGP: 0x99392F7D 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?20000531192931.Q99925>