From af2c37378f203857d5e6c957e77a14c2da5b59d2 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 24 Apr 2009 23:22:48 -0400 Subject: [PATCH] Blackfin: recurse with early serial initcode Make sure we recurse through serial_putc() rather than bang on the UART transmit register directly to avoid hardware overflows when using \n. Signed-off-by: Mike Frysinger --- cpu/blackfin/initcode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpu/blackfin/initcode.c b/cpu/blackfin/initcode.c index aba00e0fb9..c0fe2c65a6 100644 --- a/cpu/blackfin/initcode.c +++ b/cpu/blackfin/initcode.c @@ -92,7 +92,7 @@ static inline void serial_putc(char c) return; if (c == '\n') - *pUART_THR = '\r'; + serial_putc('\r'); *pUART_THR = c; -- 2.25.1