Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Feb 1998 15:57:25 -0600
From:      "J. C. Vazquez" <jcvp@dextracode.com>
To:        hackers@FreeBSD.ORG
Subject:   A "bus error" while doing outb()/inb()
Message-ID:  <34EDFC45.E2DC6C33@dextracode.com>

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?34EDFC45.E2DC6C33>