PERFORCE change 209413 for review
Robert Watson
rwatson at FreeBSD.org
Wed Apr 11 12:28:32 UTC 2012
http://p4web.freebsd.org/@@209413?ac=10
Change 209413 by rwatson at rwatson_svr_ctsrd_mipsbuild on 2012/04/11 12:27:52
Although the CSD field of the Altera SD Card softc is implicitly
aligned in practice, document the alignment requirement explicitly.
Affected files ...
.. //depot/projects/ctsrd/beribsd/src/sys/dev/altera/sdcard/altera_sdcard.h#9 edit
Differences ...
==== //depot/projects/ctsrd/beribsd/src/sys/dev/altera/sdcard/altera_sdcard.h#9 (text+ko) ====
@@ -34,7 +34,7 @@
#define ALTERA_SDCARD_CSD_SIZE 16
struct altera_sdcard_csd {
uint8_t csd_data[ALTERA_SDCARD_CSD_SIZE];
-};
+} __aligned(2); /* CSD is read in 16-bit chunks, so align to match. */
struct altera_sdcard_softc {
device_t as_dev;
More information about the p4-projects
mailing list