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-ixp2000
/
uncompress.h
diff --git
a/include/asm-arm/arch-ixp2000/uncompress.h
b/include/asm-arm/arch-ixp2000/uncompress.h
index
f66b408
..
3d3d5b2
100644
(file)
--- a/
include/asm-arm/arch-ixp2000/uncompress.h
+++ b/
include/asm-arm/arch-ixp2000/uncompress.h
@@
-29,18
+29,23
@@
#define UARTSR PHYS(0x14) /* Status reg */
#define UARTSR PHYS(0x14) /* Status reg */
-static
inline void putc(int
c)
+static
__inline__ void putc(char
c)
{
int j = 0x1000;
{
int j = 0x1000;
- while (--j && !(*UARTSR & UART_LSR_THRE))
- barrier();
-
+ while (--j && !(*UARTSR & UART_LSR_THRE));
*UARTDR = c;
}
*UARTDR = c;
}
-static
inline void flush(void
)
+static
void putstr(const char *s
)
{
{
+ while (*s)
+ {
+ putc(*s);
+ if (*s == '\n')
+ putc('\r');
+ s++;
+ }
}
#define arch_decomp_setup()
}
#define arch_decomp_setup()