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;
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to