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:
|
||
|---|---|---|
| .. | ||
| console.c | ||
| die.c | ||
| early_print.c | ||
| hw-debug_sink.adb | ||
| hw-debug_sink.ads | ||
| init.c | ||
| Kconfig | ||
| Makefile.inc | ||
| post.c | ||
| printk.c | ||
| vsprintf.c | ||
| vtxprintf.c | ||