Subject: CVS commit: src/sys/dev/scsipi
To: None <source-changes@NetBSD.org>
From: Reinoud Zandijk <reinoud@netbsd.org>
List: source-changes
Date: 10/01/2006 20:10:31
Module Name:	src
Committed By:	reinoud
Date:		Sun Oct  1 20:10:31 UTC 2006

Modified Files:
	src/sys/dev/scsipi: atapi_wdc.c

Log Message:
In gcc4 structures are differently aligned compared to gcc3. Lots of
structures can thus be misaligned for DMA when declared on stack.

The current atapi code accepts the misaligned dma's only screw's them up.
This small patch disables DMA for the rare transactions that are
misaligned. Note that all bulk-transfers are aligned due to page sizes.

See PR kern/34689


To generate a diff of this commit:
cvs rdiff -r1.102 -r1.103 src/sys/dev/scsipi/atapi_wdc.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.