From: Simon Glass Date: Mon, 19 Oct 2015 01:51:26 +0000 (-0600) Subject: x86: Init the debug UART if enabled X-Git-Tag: v2016.01-rc1~298^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=60994a02a56fd7dc408b0a36ad5dead1b85959b4;p=platform%2Fkernel%2Fu-boot.git x86: Init the debug UART if enabled 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 Reviewed-by: Bin Meng --- 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