linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git] / include / asm-arm / arch-ixp4xx / uncompress.h
index 09ae6c9..960c358 100644 (file)
 
 static volatile u32* uart_base;
 
-static inline void putc(int c)
+static __inline__ void putc(char c)
 {
        /* Check THRE and TEMT bits before we transmit the character.
         */
-       while ((uart_base[UART_LSR] & TX_DONE) != TX_DONE)
-               barrier();
-
+       while ((uart_base[UART_LSR] & TX_DONE) != TX_DONE); 
        *uart_base = c;
 }
 
-static 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(unsigned long arch_id)