Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.wildstar.net!newsfeed.direct.ca!portc01.blue.aol.com!news-peer.gsl.net!news.gsl.net!howland.erols.net!news.mathworks.com!fu-berlin.de!irz401!orion.sax.de!uriah.heep!news From: j@uriah.heep.sax.de (J Wunsch) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: Simple question Date: 2 Jan 1997 14:48:50 GMT Organization: Private BSD site, Dresden Lines: 21 Message-ID: <5aghsi$6fa@uriah.heep.sax.de> References: <32CABFA5.41C67EA6@image.dk> Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) NNTP-Posting-Host: localhost.heep.sax.de Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Newsreader: knews 0.9.6 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:33500 Jan Henrik Radl <gateway@image.dk> wrote: > When I call either off these subrutines I get core dumped BUSERROR! > > Why this it's the right data in eax,edx and so on. The program is run by > root. ...which is apparently insufficient. ;) Your program needs to keep a filedescriptor on /dev/io open, in order to be allowed to do direct port IO. Btw., by #include <machine/cpufunc.h>, you'll get inb() and outb() from the C level, too. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)