PERFORCE change 219820 for review

Brooks Davis brooks at FreeBSD.org
Tue Nov 20 21:46:33 UTC 2012


http://p4web.freebsd.org/@@219820?ac=10

Change 219820 by brooks at brooks_zenith on 2012/11/20 21:46:30

	Add a missing 0 to the mask for byte0 of C_SIZE.
	
	The previous mask (0xc) worked except that the last 0-1536K
	of the disk could not be accessed since we were shifting
	the (wrong) bits we did mask off the right edge.

Affected files ...

.. //depot/projects/ctsrd/cheribsd/src/sys/dev/altera/sdcard/altera_sdcard.h#3 edit

Differences ...

==== //depot/projects/ctsrd/cheribsd/src/sys/dev/altera/sdcard/altera_sdcard.h#3 (text+ko) ====

@@ -138,7 +138,7 @@
  * data.  Software ease of use was not a design consideration.
  */
 #define	ALTERA_SDCARD_CSD_C_SIZE_BYTE0		7
-#define	ALTERA_SDCARD_CSD_C_SIZE_MASK0		0xc	/* top 2 bits */
+#define	ALTERA_SDCARD_CSD_C_SIZE_MASK0		0xc0	/* top 2 bits */
 #define	ALTERA_SDCARD_CSD_C_SIZE_RSHIFT0	6
 
 #define	ALTERA_SDCARD_CSD_C_SIZE_BYTE1		8


More information about the p4-projects mailing list