From 1e5e4189137e2bae18ea0763bbaf9e6f2ddaf817 Mon Sep 17 00:00:00 2001 From: Kanoj Sarcar Date: Tue, 29 Aug 2000 22:22:11 +0000 Subject: Define prom_putchar/prom_getchar() for IP27s. The IP27 console printk routine now uses prom_printf to correctly parse the format string. --- arch/mips64/arc/Makefile | 6 +++++- arch/mips64/sgi-ip27/ip27-console.c | 17 ++++++++--------- 2 files changed, 13 insertions(+), 10 deletions(-) (limited to 'arch/mips64') diff --git a/arch/mips64/arc/Makefile b/arch/mips64/arc/Makefile index ca655299f..141093f78 100644 --- a/arch/mips64/arc/Makefile +++ b/arch/mips64/arc/Makefile @@ -3,9 +3,13 @@ # L_TARGET = arclib.a -L_OBJS = console.o init.o printf.o tree.o env.o cmdline.o misc.o time.o \ +L_OBJS = init.o printf.o tree.o env.o cmdline.o misc.o time.o \ file.o identify.o +ifndef CONFIG_SGI_IP27 +L_OBJS += console.o +endif + ifdef CONFIG_ARC_MEMORY L_OBJS += memory.o endif diff --git a/arch/mips64/sgi-ip27/ip27-console.c b/arch/mips64/sgi-ip27/ip27-console.c index a1bf912b9..3ba76f596 100644 --- a/arch/mips64/sgi-ip27/ip27-console.c +++ b/arch/mips64/sgi-ip27/ip27-console.c @@ -9,9 +9,10 @@ #include #include #include +#include #include -void ip27_putchar(char c) +void prom_putchar(char c) { struct ioc3 *ioc3; struct ioc3_uartregs *uart; @@ -23,17 +24,15 @@ void ip27_putchar(char c) uart->iu_thr = c; } +char __init prom_getchar(void) +{ + return(0); +} + static void ip27prom_console_write(struct console *con, const char *s, unsigned n) { - char c; - - while (n--) { - c = *(s++); - if (c == '\n') - ip27_putchar('\r'); - ip27_putchar(c); - } + prom_printf("%s", s); } static struct console ip27_prom_console = { -- cgit v1.2.3