X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-arm%2Farch-ixp2000%2Funcompress.h;h=3d3d5b2ed6e981f5cbe601bc8037150d078dcf7c;hb=987b0145d94eecf292d8b301228356f44611ab7c;hp=f66b408f363ebbe9b9761f8ea97fed85b40b628e;hpb=f7ed79d23a47594e7834d66a8f14449796d4f3e6;p=linux-2.6.git diff --git a/include/asm-arm/arch-ixp2000/uncompress.h b/include/asm-arm/arch-ixp2000/uncompress.h index f66b408f3..3d3d5b2ed 100644 --- 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 */ -static inline void putc(int c) +static __inline__ void putc(char c) { int j = 0x1000; - while (--j && !(*UARTSR & UART_LSR_THRE)) - barrier(); - + while (--j && !(*UARTSR & UART_LSR_THRE)); *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()