Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Sep 2010 05:17:36 +0000 (UTC)
From:      "Jayachandran C." <jchandra@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r213047 - head/sys/dev/ata/chipsets
Message-ID:  <201009230517.o8N5Hapb054808@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
     }



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