svn commit: r186096 - head/sys/sys
Marcel Moolenaar
marcel at FreeBSD.org
Sun Dec 14 23:12:37 UTC 2008
Author: marcel
Date: Sun Dec 14 23:12:36 2008
New Revision: 186096
URL: http://svn.freebsd.org/changeset/base/186096
Log:
Add __packed to the part sub-structure to compensate for
the 32-bit default structure alignment on ARM.
Modified:
head/sys/sys/vtoc.h
Modified: head/sys/sys/vtoc.h
==============================================================================
--- head/sys/sys/vtoc.h Sun Dec 14 22:48:48 2008 (r186095)
+++ head/sys/sys/vtoc.h Sun Dec 14 23:12:36 2008 (r186096)
@@ -72,7 +72,7 @@ struct vtoc8 {
struct {
uint16_t tag;
uint16_t flag;
- } part[VTOC8_NPARTS];
+ } part[VTOC8_NPARTS] __packed;
uint16_t __alignment;
uint32_t bootinfo[3];
uint32_t sanity;
More information about the svn-src-head
mailing list