diff options
author | Per Fogelstrom <pefo@cvs.openbsd.org> | 2004-08-09 22:24:30 +0000 |
---|---|---|
committer | Per Fogelstrom <pefo@cvs.openbsd.org> | 2004-08-09 22:24:30 +0000 |
commit | ee5c9e41a773397fe75029e57468e1bfa237012b (patch) | |
tree | beb4fa755341868ceaf6bb63abe633fd62cbbb9a /sys/dev/ic/com.c | |
parent | 20c0edddcdd753cb445a52d53dc2b686e36f6be0 (diff) |
remove old arc stuff and add sgi support.
ok mickey@
Diffstat (limited to 'sys/dev/ic/com.c')
-rw-r--r-- | sys/dev/ic/com.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/sys/dev/ic/com.c b/sys/dev/ic/com.c index c5cb31dae17..abb85b7278e 100644 --- a/sys/dev/ic/com.c +++ b/sys/dev/ic/com.c @@ -1,4 +1,4 @@ -/* $OpenBSD: com.c,v 1.97 2004/05/30 20:59:57 deraadt Exp $ */ +/* $OpenBSD: com.c,v 1.98 2004/08/09 22:24:29 pefo Exp $ */ /* $NetBSD: com.c,v 1.82.4.1 1996/06/02 09:08:00 mrg Exp $ */ /* @@ -1371,11 +1371,13 @@ comintr(arg) * Following are all routines needed for COM to act as console */ -#if defined(arc) +#if defined(__sgi__) #undef CONADDR - extern int CONADDR; +#undef COM_FREQ +#include "machine/autoconf.h" #endif + /* * The following functions are polled getc and putc routines, shared * by the console and kgdb glue. @@ -1456,8 +1458,8 @@ comcnprobe(cp) struct consdev *cp; { /* XXX NEEDS TO BE FIXED XXX */ -#if defined(arc) - bus_space_tag_t iot = &arc_bus_io; +#if defined(__sgi__) + bus_space_tag_t iot = sys_config.cons_iot; #elif defined(hppa) bus_space_tag_t iot = &hppa_bustag; #else |