From 6d4a005863b2d4808ba6284edf16ed67611b4950 Mon Sep 17 00:00:00 2001 From: Marcel Moolenaar Date: Sun, 14 Dec 2008 23:12:36 +0000 Subject: [PATCH] Add __packed to the part sub-structure to compensate for the 32-bit default structure alignment on ARM. --- sys/sys/vtoc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/sys/vtoc.h b/sys/sys/vtoc.h index 83b85478ec02..231da0055b20 100644 --- a/sys/sys/vtoc.h +++ b/sys/sys/vtoc.h @@ -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;