SMM: Only have console with DEBUG_SMI
Existing code compiled serial communication and printk() for SMM even when DEBUG_SMI was not selected. Change-Id: Ic5e25cd7453cb2243f7ac592b093fba752a299f7 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/5142 Tested-by: build bot (Jenkins) Reviewed-by: Vladimir Serbinenko <phcoder@gmail.com>
This commit is contained in:
@ -19,13 +19,10 @@
|
||||
* MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include <arch/io.h>
|
||||
#include <cpu/x86/cache.h>
|
||||
#include <cpu/x86/smm.h>
|
||||
#include <console/console.h>
|
||||
#include <console/uart.h>
|
||||
#include <console/vtxprintf.h>
|
||||
|
||||
#if CONFIG_DEBUG_SMI
|
||||
void console_tx_flush(void)
|
||||
{
|
||||
}
|
||||
@ -42,6 +39,7 @@ void console_tx_byte(unsigned char byte)
|
||||
uart_tx_byte(byte);
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
void console_init(void)
|
||||
{
|
||||
@ -53,8 +51,6 @@ void console_init(void)
|
||||
#if CONFIG_CONSOLE_SERIAL8250MEM
|
||||
uart_init();
|
||||
#endif
|
||||
#else
|
||||
console_loglevel = 1;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user