Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Sep 2006 16:47:44 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 106459 for review
Message-ID:  <200609211647.k8LGliNH025950@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=106459

Change 106459 by imp@imp_lighthouse on 2006/09/21 16:47:29

	No need to round to 4 byte boundary, because we only support
	reading on a block boundary.
	
	saves 16 bytes :-)

Affected files ...

.. //depot/projects/arm/src/sys/boot/arm/at91/libat91/mci_device.c#17 edit

Differences ...

==== //depot/projects/arm/src/sys/boot/arm/at91/libat91/mci_device.c#17 (text+ko) ====

@@ -178,8 +178,6 @@
         // Init Mode Register
 	AT91C_BASE_MCI->MCI_MR |= ((sectorLength << 16) | AT91C_MCI_PDCMODE);
 	 
-	sizeToRead = (sizeToRead + 3) / 4;
-
 	AT91C_BASE_PDC_MCI->PDC_PTCR = (AT91C_PDC_TXTDIS | AT91C_PDC_RXTDIS);
 	AT91C_BASE_PDC_MCI->PDC_RPR  = (unsigned int)dataBuffer;
 	AT91C_BASE_PDC_MCI->PDC_RCR  = sizeToRead;
@@ -239,8 +237,6 @@
 	// Init Mode Register
 	AT91C_BASE_MCI->MCI_MR |= ((1 << pMCI_Device->pMCI_DeviceFeatures->WRITE_BL_LEN) << 16) | AT91C_MCI_PDCMODE;
 
-	sizeToWrite = (sizeToWrite + 3) / 4;
-
 	// Init PDC for write sequence
 	AT91C_BASE_PDC_MCI->PDC_PTCR = (AT91C_PDC_TXTDIS | AT91C_PDC_RXTDIS);
 	AT91C_BASE_PDC_MCI->PDC_TPR = (unsigned int) dataBuffer;



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