X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-arm%2Farch-cl7500%2Funcompress.h;h=68601b3e3b957b7cbceb4a4df244364afdf9b98b;hb=987b0145d94eecf292d8b301228356f44611ab7c;hp=c437e0c88c3f9c94f95cda9bab906654672b1c21;hpb=f7ed79d23a47594e7834d66a8f14449796d4f3e6;p=linux-2.6.git diff --git a/include/asm-arm/arch-cl7500/uncompress.h b/include/asm-arm/arch-cl7500/uncompress.h index c437e0c88..68601b3e3 100644 --- a/include/asm-arm/arch-cl7500/uncompress.h +++ b/include/asm-arm/arch-cl7500/uncompress.h @@ -3,19 +3,27 @@ * * Copyright (C) 1999, 2000 Nexus Electronics Ltd. */ + #define BASE 0x03010000 #define SERBASE (BASE + (0x2f8 << 2)) -static inline void putc(char c) +static __inline__ void putc(char c) { - while (!(*((volatile unsigned int *)(SERBASE + 0x14)) & 0x20)) - barrier(); - + while (!(*((volatile unsigned int *)(SERBASE + 0x14)) & 0x20)); *((volatile unsigned int *)(SERBASE)) = c; } -static inline void flush(void) +/* + * This does not append a newline + */ +static void putstr(const char *s) { + while (*s) { + putc(*s); + if (*s == '\n') + putc('\r'); + s++; + } } static __inline__ void arch_decomp_setup(void)