svn commit: r213047 - head/sys/dev/ata/chipsets
Jayachandran C.
jchandra at FreeBSD.org
Thu Sep 23 05:17:37 UTC 2010
Author: jchandra
Date: Thu Sep 23 05:17:36 2010
New Revision: 213047
URL: http://svn.freebsd.org/changeset/base/213047
Log:
Add missing byteswap, works on big endian systems now (tested on Netlogic
XLS MIPS processor).
Submitted by: Sreekanth M. S. <kanthms at netlogicmicro dot com>
Reviewed by: mav
Modified:
head/sys/dev/ata/chipsets/ata-siliconimage.c
Modified: head/sys/dev/ata/chipsets/ata-siliconimage.c
==============================================================================
--- head/sys/dev/ata/chipsets/ata-siliconimage.c Thu Sep 23 01:38:52 2010 (r213046)
+++ head/sys/dev/ata/chipsets/ata-siliconimage.c Thu Sep 23 05:17:36 2010 (r213047)
@@ -649,7 +649,7 @@ ata_siiprb_end_transaction(struct ata_re
/* update progress */
if (!(request->status & ATA_S_ERROR) && !(request->flags & ATA_R_TIMEOUT)) {
if (request->flags & ATA_R_READ)
- request->donecount = prb->transfer_count;
+ request->donecount = le32toh(prb->transfer_count);
else
request->donecount = request->bytecount;
}
More information about the svn-src-head
mailing list