diff options
author | Stefan Reinauer <stepan@coresystems.de> | 2010-03-17 01:51:11 +0000 |
---|---|---|
committer | Stefan Reinauer <stepan@openbios.org> | 2010-03-17 01:51:11 +0000 |
commit | 348a1ba589c784f8b15d7179b2d9488c2c31ccb6 (patch) | |
tree | 2969bb556a317c0e0ae92f86aa48da17c7243599 /src/cpu/x86/smm/smiutil.c | |
parent | 37e781706bb079af3c16079892576512680987e6 (diff) | |
download | coreboot-348a1ba589c784f8b15d7179b2d9488c2c31ccb6.tar.xz |
fix a couple of warnings
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5236 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/cpu/x86/smm/smiutil.c')
-rw-r--r-- | src/cpu/x86/smm/smiutil.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cpu/x86/smm/smiutil.c b/src/cpu/x86/smm/smiutil.c index 1baaecf2a1..9a2dfa599e 100644 --- a/src/cpu/x86/smm/smiutil.c +++ b/src/cpu/x86/smm/smiutil.c @@ -102,7 +102,8 @@ void console_tx_byte(unsigned char byte) uart_tx_byte(byte); } -void uart_init(void) +#if CONFIG_DEBUG_SMI +static void uart_init(void) { /* disable interrupts */ outb(0x0, CONFIG_TTYS0_BASE + UART_IER); @@ -114,6 +115,7 @@ void uart_init(void) outb((CONFIG_TTYS0_DIV >> 8) & 0xFF, CONFIG_TTYS0_BASE + UART_DLM); outb(UART_LCS, CONFIG_TTYS0_BASE + UART_LCR); } +#endif void console_init(void) { |