summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2008-05-11 16:13:24 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2008-05-11 16:13:24 +0000
commitd0e687ac390dc56265b465eb2338c3f73822cd7c (patch)
treee47938af83cab90b5d59cd6aed41ec67a37ad5ec
parent134aaaec5085c1722ee70584d651c9a4fe817716 (diff)
Fix the build when serial console support is disabled (trivial).
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3298 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
-rw-r--r--payloads/libpayload/i386/sysinfo.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/payloads/libpayload/i386/sysinfo.c b/payloads/libpayload/i386/sysinfo.c
index 7b1f785219..686b28ffc6 100644
--- a/payloads/libpayload/i386/sysinfo.c
+++ b/payloads/libpayload/i386/sysinfo.c
@@ -35,7 +35,11 @@
*/
struct sysinfo_t lib_sysinfo = {
.cpu_khz = 200,
+#ifdef CONFIG_SERIAL_CONSOLE
.ser_ioport = CONFIG_SERIAL_IOBASE,
+#else
+ .ser_ioport = 0x3f8,
+#endif
};
void lib_get_sysinfo(void)