coreboot/src/console
Aaron Durbin 4003950881 console: rework log level to not be reliant on ROMSTAGE_CONST
The console log level variable doesn't really rely on ROMSTAGE_CONST
proper. Instead, the mutability of the variable is based on the current
implementation of ROMSTAGE_CONST (__PRE_RAM__). As such directly
use that logic for the code. In addition, refactor the code to let
the compiler and linker optimize out accesses instead of using
the pre-processor.

Change-Id: I44bcc409266ef52b9be29f75efde73a6707a53f4
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://review.coreboot.org/19438
Tested-by: build bot (Jenkins)
Reviewed-by: Furquan Shaikh <furquan@google.com>
Reviewed-by: Philippe Mathieu-Daudé <philippe.mathieu.daude@gmail.com>
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
2017-04-25 18:13:56 +02:00
..
console.c
die.c
early_print.c
hw-debug_sink.adb Hook up libhwbase in ramstage 2016-11-29 23:45:40 +01:00
hw-debug_sink.ads Hook up libhwbase in ramstage 2016-11-29 23:45:40 +01:00
init.c console: rework log level to not be reliant on ROMSTAGE_CONST 2017-04-25 18:13:56 +02:00
Kconfig Hook up libhwbase in ramstage 2016-11-29 23:45:40 +01:00
Makefile.inc console: Make snprintf available in all stages 2017-04-24 19:25:21 +02:00
post.c
printk.c console: Enable do_printk_va_list for VBOOT 2016-12-27 18:07:39 +01:00
vsprintf.c
vtxprintf.c