u-boot/arch/sandbox/cpu
Simon Glass 91b136c798 sandbox: Allow the console to work earlier
With sandbox, errors and problems may be reported before console_init_f()
is executed. For example, an argument may not parse correctly or U-Boot may
panic(). At present this output is swallowed so there is no indication what
is going wrong.

Adjust the console to deal with a very early sandbox setup, by detecting that
there is no global_data yet, and calling os functions in that case.

Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
2014-01-08 17:24:50 -07:00
..
Makefile sandbox: Use system headers first for sandbox's os.c 2013-11-21 16:54:26 -07:00
cpu.c sandbox: Implement the bootm command for sandbox 2014-01-08 17:24:42 -07:00
os.c sandbox: Allow the console to work earlier 2014-01-08 17:24:50 -07:00
start.c sandbox: Allow return from board_init_f() 2014-01-08 17:24:38 -07:00
state.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
u-boot.lds Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00