summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hellstrom <daniel@gaisler.com>2020-05-08 13:48:00 +0200
committerDaniel Hellstrom <daniel@gaisler.com>2020-09-02 10:53:07 +0200
commit2444d2db810bb9dc95a74791cae24935e998d36a (patch)
treeccf0df795867d9d2c3877dd88e8f7a1930296901
parentd2987e6ebbda5c83f60d4e5cf0febd7a82df3a32 (diff)
leon3,printk: avoid optimizing away preinit printk buffer
-rw-r--r--bsps/sparc/leon3/console/printk_support.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bsps/sparc/leon3/console/printk_support.c b/bsps/sparc/leon3/console/printk_support.c
index c7811687f3..49e73d3130 100644
--- a/bsps/sparc/leon3/console/printk_support.c
+++ b/bsps/sparc/leon3/console/printk_support.c
@@ -32,8 +32,8 @@ struct apbuart_regs *leon3_debug_uart = NULL;
* pre_printk_dbgbuf[] buffer, hopefully the buffer can help debugging the
* early BSP boot.. At least the last printk() will be caught.
*/
-static char pre_printk_dbgbuf[32] = {0};
-static int pre_printk_pos = 0;
+char pre_printk_dbgbuf[32] = {0};
+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.