summaryrefslogtreecommitdiff
path: root/src/southbridge/via/vt8237r/vt8237r_early_smbus.c
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2008-10-17 00:06:50 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2008-10-17 00:06:50 +0000
commit8829c7d904125af8040a7c15b11cbd8e7040222d (patch)
tree374a6b0a61ec736bfff0903b6064c59a02c92485 /src/southbridge/via/vt8237r/vt8237r_early_smbus.c
parent8a3ad59653c2ecb9de0ffc91714855748f8a22b9 (diff)
downloadcoreboot-8829c7d904125af8040a7c15b11cbd8e7040222d.tar.xz
ROMCC chokes on vt8237_early_network_init(). Since that function is only
called from one target and that target is compiled with GCC, make the function dependent on GCC. ROMCC also chokes on the ULL suffix for integer constants. Change the affected ones to UL for ROMCC compiled code. 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@3664 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/southbridge/via/vt8237r/vt8237r_early_smbus.c')
-rw-r--r--src/southbridge/via/vt8237r/vt8237r_early_smbus.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/southbridge/via/vt8237r/vt8237r_early_smbus.c b/src/southbridge/via/vt8237r/vt8237r_early_smbus.c
index 9c91a71963..af91707ec9 100644
--- a/src/southbridge/via/vt8237r/vt8237r_early_smbus.c
+++ b/src/southbridge/via/vt8237r/vt8237r_early_smbus.c
@@ -359,6 +359,11 @@ void vt8237_early_spi_init(void)
(*spireg) &= 0xff00;
}
+/* This #if is special. ROMCC chokes on the (rom == NULL) comparison.
+ * Since the whole function is only called for one target and that target
+ * is compiled with GCC, hide the function from ROMCC and be happy.
+ */
+#if defined(__GNUC__)
/*
* Offset 0x58:
* 31:20 reserved
@@ -481,3 +486,4 @@ int vt8237_early_network_init(struct vt8237_network_rom *rom)
/* We are done, config will be used after PCIRST#. */
return 1;
}
+#endif