Skip to content
Snippets Groups Projects
Commit 64e9b4f3 authored by Simon Glass's avatar Simon Glass Committed by Tom Rini
Browse files

Revert "sandbox: Drop special case console code for sandbox"


While sandbox works OK without the special-case code, it does result in
console output being stored in the pre-console buffer while sandbox starts
up. If there is a crash or a problem then there is no indication of what
is going on.

For ease of debugging it seems better to revert this change also.

This reverts commit d8c6fb8c.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent e341434a
No related branches found
No related tags found
No related merge requests found
...@@ -489,6 +489,13 @@ static inline void print_pre_console_buffer(int flushpoint) {} ...@@ -489,6 +489,13 @@ static inline void print_pre_console_buffer(int flushpoint) {}
void putc(const char c) void putc(const char c)
{ {
#ifdef CONFIG_SANDBOX
/* sandbox can send characters to stdout before it has a console */
if (!gd || !(gd->flags & GD_FLG_SERIAL_READY)) {
os_putc(c);
return;
}
#endif
#ifdef CONFIG_DEBUG_UART #ifdef CONFIG_DEBUG_UART
/* if we don't have a console yet, use the debug UART */ /* if we don't have a console yet, use the debug UART */
if (!gd || !(gd->flags & GD_FLG_SERIAL_READY)) { if (!gd || !(gd->flags & GD_FLG_SERIAL_READY)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment