coreboot/src/console
Aaron Durbin cf446f8a18 UPSTREAM: 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.

BUG=none
BRANCH=none
TEST=none

Change-Id: Ie38d062b92b9bcd7bf7faf88a9495c52c0d5488d
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: 4003950881
Original-Change-Id: I44bcc409266ef52b9be29f75efde73a6707a53f4
Original-Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Original-Reviewed-on: https://review.coreboot.org/19438
Original-Tested-by: build bot (Jenkins)
Original-Reviewed-by: Furquan Shaikh <furquan@google.com>
Original-Reviewed-by: Philippe Mathieu-Daud <philippe.mathieu.daude@gmail.com>
Original-Reviewed-by: Kysti Mlkki <kyosti.malkki@gmail.com>
Reviewed-on: https://chromium-review.googlesource.com/488046
2017-04-26 13:36:55 -07:00
..
console.c UPSTREAM: console: Add write line routine 2016-08-14 19:50:25 -07:00
die.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
early_print.c UPSTREAM: src/console: Add required space before opening parenthesis '(' 2016-09-04 19:36:47 -07:00
hw-debug_sink.adb UPSTREAM: Hook up libhwbase in ramstage 2016-12-21 03:12:47 -08:00
hw-debug_sink.ads UPSTREAM: Hook up libhwbase in ramstage 2016-12-21 03:12:47 -08:00
init.c UPSTREAM: console: rework log level to not be reliant on ROMSTAGE_CONST 2017-04-26 13:36:55 -07:00
Kconfig UPSTREAM: Hook up libhwbase in ramstage 2016-12-21 03:12:47 -08:00
Makefile.inc UPSTREAM: console: Make snprintf available in all stages 2017-04-26 09:20:56 -07:00
post.c UPSTREAM: console/post: be explicit about conditional cmos_post_log() compiling 2016-05-26 03:21:57 -07:00
printk.c UPSTREAM: console: Enable do_printk_va_list for VBOOT 2017-01-05 11:00:16 -08:00
vsprintf.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
vtxprintf.c UPSTREAM: console/vtxprintf.c: cast precision to size_t for string length 2016-11-29 17:38:21 -08:00