diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2014-01-26 11:32:51 +0200 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2014-03-04 15:36:27 +0100 |
commit | 9c479c9a3e3353d3a73e62d4b593bbe4129af4fd (patch) | |
tree | e24cd9de0b7ac357fe687b4a87a0abc1c8ca9316 /src/include/console | |
parent | bea6bf07dfd9b97ad81fb7433464a9f61ff02105 (diff) |
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>
Diffstat (limited to 'src/include/console')
-rw-r--r-- | src/include/console/console.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/console/console.h b/src/include/console/console.h index dfeedda5e0..a089729087 100644 --- a/src/include/console/console.h +++ b/src/include/console/console.h @@ -72,6 +72,7 @@ void __attribute__ ((noreturn)) die(const char *msg); int do_printk(int msg_level, const char *fmt, ...) __attribute__((format(printf, 2, 3))); #if defined(__BOOT_BLOCK__) && !CONFIG_BOOTBLOCK_CONSOLE || \ + defined(__SMM__) && !CONFIG_DEBUG_SMI || \ (defined(__PRE_RAM__) && !defined(__BOOT_BLOCK__)) && !CONFIG_EARLY_CONSOLE static inline void printk(int LEVEL, const char *fmt, ...); |