diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-11-26 09:11:57 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-02-04 14:54:27 +0100 |
commit | 1d5d6de35eef83082f214926d3f1920079a09f8e (patch) | |
tree | 04fb955416c8cc98c4f4abe2ed39b10753e9c300 /c/src/lib/libbsp/sparc/leon3/console/printk_support.c | |
parent | bsp/leon3: Avoid copy and paste in console driver (diff) | |
download | rtems-1d5d6de35eef83082f214926d3f1920079a09f8e.tar.bz2 |
bsp/leon3: Console driver changes
Move declaration of global variables and functions to <leon.h> header
file. Make several global variables and functions static.
Diffstat (limited to 'c/src/lib/libbsp/sparc/leon3/console/printk_support.c')
-rw-r--r-- | c/src/lib/libbsp/sparc/leon3/console/printk_support.c | 14 |
1 files changed, 4 insertions, 10 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 98150533cc..ecc44b6175 100644 --- a/c/src/lib/libbsp/sparc/leon3/console/printk_support.c +++ b/c/src/lib/libbsp/sparc/leon3/console/printk_support.c @@ -16,28 +16,22 @@ */ #include <bsp.h> +#include <leon.h> #include <rtems/libio.h> #include <stdlib.h> #include <assert.h> #include <stdio.h> -/* Let user override which on-chip APBUART will be debug UART - * 0 = Default APBUART. On MP system CPU0=APBUART0, CPU1=APBUART1... - * 1 = APBUART[0] - * 2 = APBUART[1] - * 3 = APBUART[2] - * ... - */ int debug_uart_index __attribute__((weak)) = 0; -struct apbuart_regs *dbg_uart = NULL; +static struct apbuart_regs *dbg_uart = NULL; /* Before UART driver has registered (or when no UART is available), calls to * printk that gets to bsp_out_char() will be filling data into the * pre_printk_dbgbuf[] buffer, hopefully the buffer can help debugging the * early BSP boot.. At least the last printk() will be caught. */ -char pre_printk_dbgbuf[32] = {0}; -int pre_printk_pos = 0; +static char pre_printk_dbgbuf[32] = {0}; +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. |