Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Nov 2010 09:13:14 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r214667 - stable/8/sys/dev/ata/chipsets
Message-ID:  <201011020913.oA29DE5H032152@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Tue Nov  2 09:13:13 2010
New Revision: 214667
URL: http://svn.freebsd.org/changeset/base/214667

Log:
  MFC r213047 by jchandra:
  Add missing byteswap, works on big endian systems now (tested on Netlogic
  XLS MIPS processor).

Modified:
  stable/8/sys/dev/ata/chipsets/ata-siliconimage.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)
  stable/8/sys/dev/xen/xenpci/   (props changed)

Modified: stable/8/sys/dev/ata/chipsets/ata-siliconimage.c
==============================================================================
--- stable/8/sys/dev/ata/chipsets/ata-siliconimage.c	Tue Nov  2 09:05:40 2010	(r214666)
+++ stable/8/sys/dev/ata/chipsets/ata-siliconimage.c	Tue Nov  2 09:13:13 2010	(r214667)
@@ -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;
     }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011020913.oA29DE5H032152>