[ARM] Fix decompressor serial IO to give CRLF not LFCR
As per the corresponding change to the serial drivers, arrange for ARM decompressors to give CRLF. Move the common putstr code into misc.c such that machines only need to supply "putc" and "flush" functions. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:

کامیت شده توسط
Russell King

والد
3747b36eea
کامیت
a081568d70
@@ -20,24 +20,32 @@ unsigned int __machine_arch_type;
|
||||
|
||||
#include <linux/string.h>
|
||||
|
||||
#include <asm/arch/uncompress.h>
|
||||
|
||||
#ifdef STANDALONE_DEBUG
|
||||
#define putstr printf
|
||||
#endif
|
||||
#else
|
||||
|
||||
static void putstr(const char *ptr);
|
||||
|
||||
#include <linux/compiler.h>
|
||||
#include <asm/arch/uncompress.h>
|
||||
|
||||
#ifdef CONFIG_DEBUG_ICEDCC
|
||||
#define putstr icedcc_putstr
|
||||
#define putc icedcc_putc
|
||||
|
||||
extern void icedcc_putc(int ch);
|
||||
#define putc(ch) icedcc_putc(ch)
|
||||
#define flush() do { } while (0)
|
||||
#endif
|
||||
|
||||
static void
|
||||
icedcc_putstr(const char *ptr)
|
||||
static void putstr(const char *ptr)
|
||||
{
|
||||
for (; *ptr != '\0'; ptr++) {
|
||||
icedcc_putc(*ptr);
|
||||
char c;
|
||||
|
||||
while ((c = *ptr++) != '\0') {
|
||||
if (c == '\n')
|
||||
putc('\r');
|
||||
putc(c);
|
||||
}
|
||||
|
||||
flush();
|
||||
}
|
||||
|
||||
#endif
|
||||
|
مرجع در شماره جدید
Block a user