X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=src%2Fcpu%2Fx86%2Fsmm%2Fsmiutil.c;h=9a2dfa599e206c579435a5f8c1b8882184e889d2;hb=348a1ba589c784f8b15d7179b2d9488c2c31ccb6;hp=1baaecf2a1c2224d844b8fd65d9c0a9631f3d1ea;hpb=37e781706bb079af3c16079892576512680987e6;p=coreboot.git diff --git a/src/cpu/x86/smm/smiutil.c b/src/cpu/x86/smm/smiutil.c index 1baaecf2a..9a2dfa599 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) {