Date: Sun, 14 Dec 2008 23:12:36 +0000 (UTC) From: Marcel Moolenaar <marcel@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r186096 - head/sys/sys Message-ID: <200812142312.mBENCaor076803@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812142312.mBENCaor076803>