Subject: Bus space debugging macros
To: None <port-alpha@NetBSD.ORG>
From: Jason Thorpe <>
List: port-alpha
Date: 06/07/1998 20:27:25
Hi folks, I've just added some debugging support to the alpha bus.h:

 ---- snip ----
Add debugging support to the bus_space macros.  If BUS_SPACE_DEBUG (or DEBUG)
is defined, the bus_space macros will check to ensure that the bus address
and the target buffer (if applicable) are aligned properly for the size
of the type being used.  If they are not, a message will be displayed on
the console.
 ---- snip ----

Basically, if you're having problems w/ an ISA or some other driver, build
your kernel w/ DEBUG or BUS_SPACE_DEBUG (make sure to make clean first!),
and the kernel will display additional debugging info (file, line number)
before it dies...


Jason R. Thorpe                             
NASA Ames Research Center                            Home: +1 408 866 1912
NAS: M/S 258-5                                       Work: +1 650 604 0935
Moffett Field, CA 94035                             Pager: +1 650 428 6939