From: Mike Frysinger Date: Sat, 25 Apr 2009 03:22:48 +0000 (-0400) Subject: Blackfin: recurse with early serial initcode X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=af2c37378f203857d5e6c957e77a14c2da5b59d2;p=u-boot.git 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 --- 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;