[U-Boot] [PATCH v2 4/5] x86: Init the debug UART if enabled

Bin Meng bmeng.cn at gmail.com
Mon Oct 19 05:17:56 CEST 2015


On Mon, Oct 19, 2015 at 9:51 AM, Simon Glass <sjg at chromium.org> wrote:
> If the debug UART is enabled, get it ready for use at the earliest possible
> opportunity. This is not actually very early, but until we have a stack it
> is difficult to make it work.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
> Changes in v2:
> - Remove comment block since we now always enable the debug UART
> - Use a tab after the 'call' instruction
>
>  arch/x86/cpu/start.S | 11 +++--------
>  1 file changed, 3 insertions(+), 8 deletions(-)
>
> diff --git a/arch/x86/cpu/start.S b/arch/x86/cpu/start.S
> index d072825..5b4ee79 100644
> --- a/arch/x86/cpu/start.S
> +++ b/arch/x86/cpu/start.S
> @@ -126,14 +126,9 @@ car_init_ret:
>         call    board_init_f_mem
>         mov     %eax, %esp
>
> -       /*
> -        * Debug UART is available here although it may not be plumbed out
> -        * to pins depending on the board. To use it:
> -        *
> -        * call  debug_uart_init
> -        * mov   $'a', %eax
> -        * call  printch
> -        */
> +#ifdef CONFIG_DEBUG_UART
> +       call    debug_uart_init
> +#endif
>
>         /* Get address of global_data */
>         mov     %fs:0, %edx
> --

Reviewed-by: Bin Meng <bmeng.cn at gmail.com>


More information about the U-Boot mailing list