Skip to content
Snippets Groups Projects
Forked from Reform / reform-boundary-uboot
29623 commits behind the upstream repository.
  • Alexey Brodkin's avatar
    9aed5a27
    board_f: explicitly disable console on early boot · 9aed5a27
    Alexey Brodkin authored
    
    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: default avatarAlexey Brodkin <abrodkin@synopsys.com>
    
    Cc: Mischa Jonker <mjonker@synopsys.com>
    Cc: Wolfgang Denk <wd@denx.de>
    Cc: Simon Glass <sjg@chromium.org>
    Acked-by: default avatarSimon Glass <sjg@chromium.org>
    9aed5a27
    History
    board_f: explicitly disable console on early boot
    Alexey Brodkin authored
    
    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: default avatarAlexey Brodkin <abrodkin@synopsys.com>
    
    Cc: Mischa Jonker <mjonker@synopsys.com>
    Cc: Wolfgang Denk <wd@denx.de>
    Cc: Simon Glass <sjg@chromium.org>
    Acked-by: default avatarSimon Glass <sjg@chromium.org>
board_f.c 24.79 KiB