diff options
Diffstat (limited to 'src/console/init.c')
-rw-r--r-- | src/console/init.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/console/init.c b/src/console/init.c index 78c568f96e..8f71b09881 100644 --- a/src/console/init.c +++ b/src/console/init.c @@ -14,6 +14,7 @@ * GNU General Public License for more details. */ +#include <arch/early_variables.h> #include <console/console.h> #include <console/uart.h> #include <console/streams.h> @@ -29,10 +30,13 @@ #define CONSOLE_LEVEL_CONST 0 #endif +static int console_inited CAR_GLOBAL; static int console_loglevel = CONFIG_DEFAULT_CONSOLE_LOGLEVEL; static inline int get_log_level(void) { + if (car_get_var(console_inited) == 0) + return -1; if (CONSOLE_LEVEL_CONST) return get_console_loglevel(); @@ -74,6 +78,8 @@ asmlinkage void console_init(void) console_hw_init(); + car_set_var(console_inited, 1); + printk(BIOS_NOTICE, "\n\ncoreboot-%s%s %s " ENV_STRING " starting...\n", coreboot_version, coreboot_extra_version, coreboot_build); } |