RT-AC66 3.0.0.4.374.130 core
[tomato.git] / release / src-rt-6.x / linux / linux-2.6 / arch / mips / arc / console.c
blob0fe6032999cbc4f2ff602c7c791490e68bb981e8
1 /*
2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
4 * for more details.
6 * Copyright (C) 1996 David S. Miller (dm@sgi.com)
7 * Compability with board caches, Ulf Carlsson
8 */
9 #include <linux/kernel.h>
10 #include <asm/sgialib.h>
11 #include <asm/bcache.h>
14 * IP22 boardcache is not compatible with board caches. Thus we disable it
15 * during romvec action. Since r4xx0.c is always compiled and linked with your
16 * kernel, this shouldn't cause any harm regardless what MIPS processor you
17 * have.
19 * The ARC write and read functions seem to interfere with the serial lines
20 * in some way. You should be careful with them.
23 void prom_putchar(char c)
25 ULONG cnt;
26 CHAR it = c;
28 bc_disable();
29 ArcWrite(1, &it, 1, &cnt);
30 bc_enable();