summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2008-10-16 15:05:18 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2008-10-16 15:05:18 +0000
commitca11e7c2590eba229ee62ccee86620a5d0ef7851 (patch)
tree9ac3851d2dc72a34b7c1cd766cd9e495e3fae928
parent7528aa6de3cf67a5310d2cfb7e555c34de7dd20e (diff)
downloadcoreboot-ca11e7c2590eba229ee62ccee86620a5d0ef7851.tar.xz
Revision 3567 introduced __attribute__((packed)) for a structured which
is also visible to ROMCC and ROMCC doesn't understand that. The fix is to use __attribute__((packed)) only for gcc compiled code. This has been unfixed for too long. There are more problems remaining, but at least this one is solvable easily. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3660 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
-rw-r--r--src/southbridge/via/vt8237r/vt8237r.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/southbridge/via/vt8237r/vt8237r.h b/src/southbridge/via/vt8237r/vt8237r.h
index 231553bc11..9f0e791f51 100644
--- a/src/southbridge/via/vt8237r/vt8237r.h
+++ b/src/southbridge/via/vt8237r/vt8237r.h
@@ -93,6 +93,10 @@ struct vt8237_network_rom {
u8 cfg_c;
u8 cfg_d;
u8 checksum;
-} __attribute__ ((packed));
+}
+#if defined(__GNUC__)
+__attribute__ ((packed))
+#endif
+;
#endif