#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()