Date: Tue, 24 Feb 1998 16:08:02 -0600 From: "J. C. Vazquez" <jcvp@dextracode.com> To: hackers@FreeBSD.ORG Subject: Re: A "bus error" while doing outb()/inb() Message-ID: <34F344C2.6A0EDF21@dextracode.com> References: <34EDFC45.E2DC6C33@dextracode.com>
next in thread | previous in thread | raw e-mail | index | archive | help
J. C. Vazquez wrote: > Hi there! > > I'm getting a "buss error" (signal SIGBUS) doing I/O with inb() and > outb() to any > port. This is running under FreeBSD 3.0-CURRENT, logged on as root. > Before this, I > do open("/dev/io",RW) and check any return error. gdb says that the > signal was > received in outbv()/inbv(). The following is an example: > > ¦#include <machine/cpufunc.h> > ... > outb(0x70, 0x0); > x1=inb(0x71); > outb(0x70, 0x02); /* <-------- a "buss error" here, core nicely > dumped */ > ... > > Does anybody have an idea what's going on? Any help/comments will be > highly > appreciated. Thank you all. > > -jcvp- > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message Got it! I was closing the file descriptor used to open("/dev/io", RW). Removed that close, everything works fine now. :) -- +--------------------------------------+ + http://www.dextracode.com/-jcvp/ + jcvp@dextracode.com + jcvp@altavista.net +--------------------------------------+ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?34F344C2.6A0EDF21>