diff options
| author | Alexey Brodkin <[email protected]> | 2013-11-27 22:32:40 +0400 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2013-12-13 09:17:32 -0500 |
| commit | 9aed5a277738d7427b1949d75afbf95505c09499 (patch) | |
| tree | 03452bd830f0834655d8cf1d25e5878ba67ccbd1 /scripts/checkstack.pl | |
| parent | 07a1a0c93161733ff4473ebb7d642eb8b68d974e (diff) | |
board_f: explicitly disable console on early boot
If U-Boot build with DEBUG enabled/defined the first call of "debug"
function (that dumps data to any available console) will happen before
zeroing of initial "gd" in init call "zero_global_data" in
"init_sequence_f".
And if stack was not filled with zeros chances are high that
"gd->have_console" won't be 0. In its turn it will cause attempt to
output things to non-initialized yet serial console.
So for safety and predictability we set "gd->have_console = 0".
Signed-off-by: Alexey Brodkin <[email protected]>
Cc: Mischa Jonker <[email protected]>
Cc: Wolfgang Denk <[email protected]>
Cc: Simon Glass <[email protected]>
Acked-by: Simon Glass <[email protected]>
Diffstat (limited to 'scripts/checkstack.pl')
0 files changed, 0 insertions, 0 deletions
