Mime-Version: 1.0
X-Newsreader: knews 0.9.8
From: icurtis@radlogic.com.au (Ivan Curtis)
Subject: Parallel port access
Newsgroups: comp.os.minix
Content-Type: text/plain; charset=us-ascii
Lines: 20
Message-ID: <_9IW3.65$GC6.3164@nsw.nnrp.telstra.net>
Date: Thu, 11 Nov 1999 23:19:22 GMT
NNTP-Posting-Host: 139.130.139.146
X-Complaints-To: abuse@telstra.net
X-Trace: nsw.nnrp.telstra.net 942362362 139.130.139.146 (Fri, 12 Nov 1999 10:19:22 EST)
NNTP-Posting-Date: Fri, 12 Nov 1999 10:19:22 EST
Organization: Customer of Telstra Big Pond Direct
Path: news.adfa.oz.au!clarion.carno.net.au!news0.optus.net.au!news1.optus.net.au!optus!news.mpx.com.au!nsw.nnrp.telstra.net!not-for-mail

I would like to control some equipment using a 286 pc running minix 2.0
I have looked at the source code for the printer driver, and copied a 
bit of the assembly code to do port output operations.

Only problem is, I get a "Memory Fault" every time I run my code. I have
narrowed the problem down to a single "outb dx" instruction in my io code;
if I comment that out, no memory fault but also no io.

I've tried running as root, no difference. Is there some io permissions
system call I need to make before being able to directly access an IO port?
I have written this code for linux before, where one needed an ioperm()
to access a port.

Any help appreciated.

Ivan
----                               o 
icurtis@radlogic.com.au          \o/
Adelaide, South AUSTRALIA         ]                      ph: 61 8 8373-3990
----                             //                      fx: 61 8 8373-3251
