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-integrator
/
uncompress.h
diff --git
a/include/asm-arm/arch-integrator/uncompress.h
b/include/asm-arm/arch-integrator/uncompress.h
index
3957402
..
f61825c
100644
(file)
--- a/
include/asm-arm/arch-integrator/uncompress.h
+++ b/
include/asm-arm/arch-integrator/uncompress.h
@@
-28,21
+28,18
@@
/*
* This does not append a newline
*/
/*
* This does not append a newline
*/
-static void put
str(const char *s
)
+static void put
c(int c
)
{
{
- while (
*s) {
-
while (AMBA_UART_FR & (1 << 5)
);
+ while (
AMBA_UART_FR & (1 << 5))
+
barrier(
);
- AMBA_UART_DR = *s;
-
- if (*s == '\n') {
- while (AMBA_UART_FR & (1 << 5));
+ AMBA_UART_DR = c;
+}
- AMBA_UART_DR = '\r';
- }
- s++;
- }
- while (AMBA_UART_FR & (1 << 3));
+static inline void flush(void)
+{
+ while (AMBA_UART_FR & (1 << 3))
+ barrier();
}
/*
}
/*