mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-12 02:49:54 +08:00
bsps/xilinx-zynq: Init debug console only once
Initialize the debug console only once during early system initialization.
This commit is contained in:
@@ -52,10 +52,7 @@ static void zynq_debug_console_init(void)
|
|||||||
|
|
||||||
static void zynq_debug_console_early_init(char c)
|
static void zynq_debug_console_early_init(char c)
|
||||||
{
|
{
|
||||||
rtems_termios_device_context *base =
|
zynq_debug_console_init();
|
||||||
&zynq_uart_instances[BSP_CONSOLE_MINOR].base;
|
|
||||||
|
|
||||||
zynq_uart_initialize(base);
|
|
||||||
zynq_debug_console_out(c);
|
zynq_debug_console_out(c);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user