summaryrefslogtreecommitdiff
path: root/cpu/blackfin
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-04-24 23:22:48 -0400
committerMike Frysinger <vapier@gentoo.org>2009-05-06 08:47:16 -0400
commitaf2c37378f203857d5e6c957e77a14c2da5b59d2 (patch)
tree533f30a24fd3bb6093be07ac6a3fb1ac818bbfee /cpu/blackfin
parent6b8edfde22acc574b5532e9f086e6a7287a9bc78 (diff)
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>
Diffstat (limited to 'cpu/blackfin')
-rw-r--r--cpu/blackfin/initcode.c2
1 files changed, 1 insertions, 1 deletions
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;