Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sys/dev/scsipi



Module Name:    src
Committed By:   christos
Date:           Thu Nov 30 16:23:21 UTC 2006

Modified Files:
        src/sys/dev/scsipi: scsipi_all.h scsipi_cd.h scsipi_disk.h

Log Message:
PR/34202: Dave Huang: Accessing cd device on alpha causes kernel trap

>From the PR:
  Since struct scsipi_read_discinfo_data is an odd number of bytes long
  (35 bytes), ti ends up being unaligned. wdc_datain_pio() uses
  bus_space_read_multi_4() to read the response from the drive, and
  since ti is unaligned, it causes an unaligned access fault.

Add __aligned__(4) to all the structures.


To generate a diff of this commit:
cvs rdiff -r1.29 -r1.30 src/sys/dev/scsipi/scsipi_all.h
cvs rdiff -r1.14 -r1.15 src/sys/dev/scsipi/scsipi_cd.h
cvs rdiff -r1.16 -r1.17 src/sys/dev/scsipi/scsipi_disk.h

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




Home | Main Index | Thread Index | Old Index