summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorkn <kn@cvs.openbsd.org>2018-11-05 15:13:57 +0000
committerkn <kn@cvs.openbsd.org>2018-11-05 15:13:57 +0000
commit50223ea4f71531fb3a1b80b6b24e66e2765a6dec (patch)
tree8fe7f659a3d2584a2796a127ee6023f7a199aae1 /sys/arch
parent38bc9243f25d37d67b5d21ac8bcfb8f033a0908f (diff)
Fix kernel build without serial console
OK mpi
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/amd64/amd64/machdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/amd64/amd64/machdep.c b/sys/arch/amd64/amd64/machdep.c
index 29f4448a220..4f43c21e256 100644
--- a/sys/arch/amd64/amd64/machdep.c
+++ b/sys/arch/amd64/amd64/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.250 2018/07/30 09:04:52 jmatthew Exp $ */
+/* $OpenBSD: machdep.c,v 1.251 2018/11/05 15:13:56 kn Exp $ */
/* $NetBSD: machdep.c,v 1.3 2003/05/07 22:58:18 fvdl Exp $ */
/*-
@@ -1943,9 +1943,9 @@ getbootinfo(char *bootinfo, int bootinfo_size)
case BOOTARG_CONSDEV:
if (q->ba_size >= sizeof(bios_consdev_t) +
offsetof(struct _boot_args32, ba_arg)) {
+#if NCOM > 0
bios_consdev_t *cdp =
(bios_consdev_t*)q->ba_arg;
-#if NCOM > 0
static const int ports[] =
{ 0x3f8, 0x2f8, 0x3e8, 0x2e8 };
int unit = minor(cdp->consdev);