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 <vapier@gentoo.org>
This commit is contained in:
Mike Frysinger 2009-04-24 23:22:48 -04:00
parent 6b8edfde22
commit af2c37378f

View File

@ -92,7 +92,7 @@ static inline void serial_putc(char c)
return;
if (c == '\n')
*pUART_THR = '\r';
serial_putc('\r');
*pUART_THR = c;