Subject: Re: Driver for hardware sensors in G4 iBooks and probably other
To: Nathan J. Williams <nathanw@wasabisystems.com>
From: Michael <macallan18@earthlink.net>
List: port-macppc
Date: 12/13/2004 20:50:08
Hello,

> > snapper_softc has a bunch of DMA descriptors that need to be 16-byte
> > aligned - apparently struct device gained 4 bytes so the alignment
> > was toast. Moved one 4-byte field behind the DMA stuff and it
> > works. Sort of - xmms hangs now and then, apparently at random -
> > I'll see if I can catch it in gdb.
> 
> If something needs to be aligned, it should be deliberately forced to
> that alignment, not just tweaked until it works.

Sure. That leads to my newbie-question - where and how are the device structs allocated? I think they get some sort of well-defined alignment then? Maybe these things should be allocated separately to avoid alignment mismatches in the future.

have fun
Michael