git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git]
/
include
/
asm-arm
/
arch-versatile
/
uncompress.h
diff --git
a/include/asm-arm/arch-versatile/uncompress.h
b/include/asm-arm/arch-versatile/uncompress.h
index
7215133
..
2f57499
100644
(file)
--- a/
include/asm-arm/arch-versatile/uncompress.h
+++ b/
include/asm-arm/arch-versatile/uncompress.h
@@
-25,16
+25,22
@@
/*
* This does not append a newline
*/
/*
* This does not append a newline
*/
-static
inline void putc(int c
)
+static
void putstr(const char *s
)
{
{
- while (AMBA_UART_FR & (1 << 5))
- barrier();
+ while (*s) {
+ while (AMBA_UART_FR & (1 << 5))
+ barrier();
- AMBA_UART_DR = c;
-}
+ AMBA_UART_DR = *s;
-static inline void flush(void)
-{
+ if (*s == '\n') {
+ while (AMBA_UART_FR & (1 << 5))
+ barrier();
+
+ AMBA_UART_DR = '\r';
+ }
+ s++;
+ }
while (AMBA_UART_FR & (1 << 3))
barrier();
}
while (AMBA_UART_FR & (1 << 3))
barrier();
}