diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2012-06-10 21:03:36 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2012-06-10 21:03:36 +0000 |
commit | f1b03acb95f7dc138739b46475506927d4f5d723 (patch) | |
tree | 1208f34687eab18171bc805ca29a26f8ddb5d143 | |
parent | dce083f559850bf5d4e014c10e331132b4eb5f00 (diff) |
Always allow serial console, even if the BIOS doesn't report the presence of
any serial ports. Otherwise the new code to use puc(4) ports as serial
console isn't all that useful.
ok sthen@, miod@
-rw-r--r-- | sys/arch/amd64/stand/libsa/bioscons.c | 11 | ||||
-rw-r--r-- | sys/arch/i386/stand/libsa/bioscons.c | 11 |
2 files changed, 10 insertions, 12 deletions
diff --git a/sys/arch/amd64/stand/libsa/bioscons.c b/sys/arch/amd64/stand/libsa/bioscons.c index 481289ef468..5913b5f2eb8 100644 --- a/sys/arch/amd64/stand/libsa/bioscons.c +++ b/sys/arch/amd64/stand/libsa/bioscons.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bioscons.c,v 1.6 2012/06/03 13:18:33 kettenis Exp $ */ +/* $OpenBSD: bioscons.c,v 1.7 2012/06/10 21:02:42 kettenis Exp $ */ /* * Copyright (c) 1997-1999 Michael Shalayeff @@ -124,11 +124,10 @@ com_probe(struct consdev *cn) n &= 7; for (i = 0; i < n; i++) printf(" com%d", i); - if (n) { - cn->cn_pri = CN_LOWPRI; - /* XXX from i386/conf.c */ - cn->cn_dev = makedev(8, 0); - } + + cn->cn_pri = CN_LOWPRI; + /* XXX from i386/conf.c */ + cn->cn_dev = makedev(8, 0); } int com_speed = -1; /* default speed is 9600 baud */ diff --git a/sys/arch/i386/stand/libsa/bioscons.c b/sys/arch/i386/stand/libsa/bioscons.c index a4ff3b2b0dd..b785cf7d4e8 100644 --- a/sys/arch/i386/stand/libsa/bioscons.c +++ b/sys/arch/i386/stand/libsa/bioscons.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bioscons.c,v 1.32 2012/06/03 13:17:47 kettenis Exp $ */ +/* $OpenBSD: bioscons.c,v 1.33 2012/06/10 21:03:35 kettenis Exp $ */ /* * Copyright (c) 1997-1999 Michael Shalayeff @@ -126,11 +126,10 @@ com_probe(struct consdev *cn) n &= 7; for (i = 0; i < n; i++) printf(" com%d", i); - if (n) { - cn->cn_pri = CN_LOWPRI; - /* XXX from i386/conf.c */ - cn->cn_dev = makedev(8, 0); - } + + cn->cn_pri = CN_LOWPRI; + /* XXX from i386/conf.c */ + cn->cn_dev = makedev(8, 0); } int com_speed = -1; |