diff options
-rw-r--r-- | c/src/lib/libbsp/sparc/leon3/console/printk_support.c | 6 | ||||
-rw-r--r-- | c/src/lib/libbsp/sparc/leon3/include/leon.h | 2 | ||||
-rw-r--r-- | c/src/lib/libbsp/sparc/leon3/startup/bspstart.c | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/c/src/lib/libbsp/sparc/leon3/console/printk_support.c b/c/src/lib/libbsp/sparc/leon3/console/printk_support.c index ecc44b6175..286e37dca5 100644 --- a/c/src/lib/libbsp/sparc/leon3/console/printk_support.c +++ b/c/src/lib/libbsp/sparc/leon3/console/printk_support.c @@ -36,7 +36,7 @@ static int pre_printk_pos = 0; /* Initialize the BSP system debug console layer. It will scan AMBA Plu&Play * for a debug APBUART and enable RX/TX for that UART. */ -int bsp_debug_uart_init(void) +void bsp_debug_uart_init(void) { int i; struct ambapp_dev *adev; @@ -71,9 +71,7 @@ int bsp_debug_uart_init(void) dbg_uart = (struct apbuart_regs *)apb->start; dbg_uart->ctrl |= LEON_REG_UART_CTRL_RE | LEON_REG_UART_CTRL_TE; dbg_uart->status = 0; - return 1; - } else - return 0; + } } /* diff --git a/c/src/lib/libbsp/sparc/leon3/include/leon.h b/c/src/lib/libbsp/sparc/leon3/include/leon.h index 82e2c6da35..deff75ddd5 100644 --- a/c/src/lib/libbsp/sparc/leon3/include/leon.h +++ b/c/src/lib/libbsp/sparc/leon3/include/leon.h @@ -317,6 +317,8 @@ int apbuart_inbyte_nonblocking(struct apbuart_regs *regs); */ void leon3_secondary_cpu_initialize(uint32_t cpu); +void bsp_debug_uart_init(void); + #endif /* !ASM */ #ifdef __cplusplus diff --git a/c/src/lib/libbsp/sparc/leon3/startup/bspstart.c b/c/src/lib/libbsp/sparc/leon3/startup/bspstart.c index 6ab2ce4a90..1e8d12c7a1 100644 --- a/c/src/lib/libbsp/sparc/leon3/startup/bspstart.c +++ b/c/src/lib/libbsp/sparc/leon3/startup/bspstart.c @@ -17,6 +17,7 @@ */ #include <bsp.h> +#include <leon.h> #include <rtems/bspIo.h> #include <bsp/bootcard.h> @@ -29,7 +30,6 @@ int CPU_SPARC_HAS_SNOOPING; int LEON3_Cpu_Index = 0; extern void amba_initialize(void); -extern void bsp_debug_uart_init(void); /* * set_snooping |