switch-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 console: Add write line routine 2016-08-10 22:30:19 +02:00
die.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
early_print.c src/console: Add required space before opening parenthesis '(' 2016-08-31 20:06:20 +02:00
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 console/post: be explicit about conditional cmos_post_log() compiling 2016-05-25 18:04:11 +02:00
printk.c console: Enable do_printk_va_list for VBOOT 2016-12-27 18:07:39 +01:00
vsprintf.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
vtxprintf.c console/vtxprintf.c: cast precision to size_t for string length 2016-11-21 23:44:18 +01:00