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
fedora core 6 1.2949 + vserver 2.2.0
[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
2f57499
..
7215133
100644
(file)
--- a/
include/asm-arm/arch-versatile/uncompress.h
+++ b/
include/asm-arm/arch-versatile/uncompress.h
@@
-25,22
+25,16
@@
/*
* This does not append a newline
*/
/*
* This does not append a newline
*/
-static
void putstr(const char *s
)
+static
inline void putc(int c
)
{
{
- while (*s) {
- while (AMBA_UART_FR & (1 << 5))
- barrier();
-
- AMBA_UART_DR = *s;
+ while (AMBA_UART_FR & (1 << 5))
+ barrier();
- if (*s == '\n') {
- while (AMBA_UART_FR & (1 << 5))
- barrier();
+ AMBA_UART_DR = c;
+}
- AMBA_UART_DR = '\r';
- }
- s++;
- }
+static inline void flush(void)
+{
while (AMBA_UART_FR & (1 << 3))
barrier();
}
while (AMBA_UART_FR & (1 << 3))
barrier();
}