X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-arm%2Farch-lh7a40x%2Funcompress.h;fp=include%2Fasm-arm%2Farch-lh7a40x%2Funcompress.h;h=ec8ab67122f3320024d4e5031e909cf39a02c505;hb=64ba3f394c830ec48a1c31b53dcae312c56f1604;hp=3d1ce0426a33646127a90e92f1a3b05a47e2fb48;hpb=be1e6109ac94a859551f8e1774eb9a8469fe055c;p=linux-2.6.git diff --git a/include/asm-arm/arch-lh7a40x/uncompress.h b/include/asm-arm/arch-lh7a40x/uncompress.h index 3d1ce0426..ec8ab6712 100644 --- a/include/asm-arm/arch-lh7a40x/uncompress.h +++ b/include/asm-arm/arch-lh7a40x/uncompress.h @@ -16,21 +16,26 @@ #ifndef UART_R_STATUS # define UART_R_STATUS (0x10) #endif -#define nTxRdy (0x20) /* Not TxReady (literally Tx FIFO full) */ +#define nTxRdy (0x20) /* Not TxReady (literally Tx FIFO full) */ /* Access UART with physical addresses before MMU is setup */ #define UART_STATUS (*(volatile unsigned long*) (UART2_PHYS + UART_R_STATUS)) #define UART_DATA (*(volatile unsigned long*) (UART2_PHYS + UART_R_DATA)) -static inline void putc(int ch) +static __inline__ void putc (char ch) { while (UART_STATUS & nTxRdy) - barrier(); + ; UART_DATA = ch; } -static inline void flush(void) +static void putstr (const char* sz) { + for (; *sz; ++sz) { + putc (*sz); + if (*sz == '\n') + putc ('\r'); + } } /* NULL functions; we don't presently need them */