From f752c246fad2fb79d0a5a348e8774f9c90e92915 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 6 Sep 2007 15:34:58 +0000 Subject: [PATCH] 2007-09-06 Joel Sherrill * console/debugputs.c: Add missing include file. --- c/src/lib/libbsp/sparc/leon3/ChangeLog | 4 ++++ c/src/lib/libbsp/sparc/leon3/console/debugputs.c | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/c/src/lib/libbsp/sparc/leon3/ChangeLog b/c/src/lib/libbsp/sparc/leon3/ChangeLog index 197e0c03c5..10a39e2423 100644 --- a/c/src/lib/libbsp/sparc/leon3/ChangeLog +++ b/c/src/lib/libbsp/sparc/leon3/ChangeLog @@ -1,3 +1,7 @@ +2007-09-06 Joel Sherrill + + * console/debugputs.c: Add missing include file. + 2007-09-06 Daniel Hellstrom * amba/amba.c: Add missing part of previous patch. diff --git a/c/src/lib/libbsp/sparc/leon3/console/debugputs.c b/c/src/lib/libbsp/sparc/leon3/console/debugputs.c index 255867bc95..ef51f3b214 100644 --- a/c/src/lib/libbsp/sparc/leon3/console/debugputs.c +++ b/c/src/lib/libbsp/sparc/leon3/console/debugputs.c @@ -77,6 +77,12 @@ static void bsp_out_char(char c) console_outbyte_polled(0, c); } +/* + * To support printk + */ + +#include + BSP_output_char_function_type BSP_output_char = bsp_out_char; static char bsp_in_char(void)