diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2008-06-08 13:55:07 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2008-06-08 13:55:07 +0000 |
commit | d177b1d3680c458f6fe4c70d0f20089ab8965c46 (patch) | |
tree | 271b65f8d039134dbd4d34354099acad5e2f7a13 /sys/dev/ic/com.c | |
parent | ee05241691270f1ae40e071f28c08d4ed2eb8002 (diff) |
Make serial console on non-primary ports work to on i386.
tested by jbg@, "it is right" deraadt@
Diffstat (limited to 'sys/dev/ic/com.c')
-rw-r--r-- | sys/dev/ic/com.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/ic/com.c b/sys/dev/ic/com.c index 53e219c86dc..7e9ccbbdcce 100644 --- a/sys/dev/ic/com.c +++ b/sys/dev/ic/com.c @@ -1,4 +1,4 @@ -/* $OpenBSD: com.c,v 1.127 2008/04/25 11:30:22 dlg Exp $ */ +/* $OpenBSD: com.c,v 1.128 2008/06/08 13:55:06 kettenis Exp $ */ /* $NetBSD: com.c,v 1.82.4.1 1996/06/02 09:08:00 mrg Exp $ */ /* @@ -130,6 +130,7 @@ bus_addr_t comconsaddr = 0; int comconsattached; bus_space_tag_t comconsiot; bus_space_handle_t comconsioh; +int comconsunit; tcflag_t comconscflag = TTYDEF_CFLAG; #endif @@ -1336,7 +1337,7 @@ comcnprobe(struct consdev *cp) break; /* Initialize required fields. */ - cp->cn_dev = makedev(commajor, CONUNIT); + cp->cn_dev = makedev(commajor, comconsunit); #if defined(COMCONSOLE) || defined(PCCOMCONSOLE) || !defined(__amd64__) cp->cn_pri = CN_HIGHPRI; #else |