Skip to content
Snippets Groups Projects
Forked from Reform / reform-boundary-uboot
24514 commits behind the upstream repository.
  • Marek Vasut's avatar
    f1f1e9cb
    serial: Use puts() and hang() instead of panic() in SPL · f1f1e9cb
    Marek Vasut authored
    
    If case the get_current() call fails before relocation, the U-Boot
    must try to print an error message, fail and either reset or halt.
    Such error is critical enough to halt the system, as it means the
    system is in very bad state.
    
    This is now also used in SPL, since CONFIG_SERIAL_MULTI is enabled
    unconditionally. To avoid compiling whole vsprintf.c into SPL, use
    puts() to print error message and hang() to stop the system in case
    of SPL build.
    
    Signed-off-by: default avatarMarek Vasut <marex@denx.de>
    Cc: Marek Vasut <marek.vasut@gmail.com>
    Cc: Tom Rini <trini@ti.com>
    f1f1e9cb
    History
    serial: Use puts() and hang() instead of panic() in SPL
    Marek Vasut authored
    
    If case the get_current() call fails before relocation, the U-Boot
    must try to print an error message, fail and either reset or halt.
    Such error is critical enough to halt the system, as it means the
    system is in very bad state.
    
    This is now also used in SPL, since CONFIG_SERIAL_MULTI is enabled
    unconditionally. To avoid compiling whole vsprintf.c into SPL, use
    puts() to print error message and hang() to stop the system in case
    of SPL build.
    
    Signed-off-by: default avatarMarek Vasut <marex@denx.de>
    Cc: Marek Vasut <marek.vasut@gmail.com>
    Cc: Tom Rini <trini@ti.com>