summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2000-07-25 22:36:31 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2000-07-25 22:36:31 +0000
commit4ab36ad79c87b45fa4331355e0b15a7de3fab8c8 (patch)
treea794e3b6ec86534c1d2fb336550dab6ab4a4d210
parent7edd415649f0efee38e464bd6bd6875d1d04b4bb (diff)
allow compiling -DDEBUG w/o apm0 in he config; pointed by cleb <cb@hert.org>.
also, print console device and speed before switching to the new console.
-rw-r--r--sys/arch/i386/i386/bios.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/arch/i386/i386/bios.c b/sys/arch/i386/i386/bios.c
index 39a43f3f25d..2226e1cc687 100644
--- a/sys/arch/i386/i386/bios.c
+++ b/sys/arch/i386/i386/bios.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bios.c,v 1.27 2000/04/16 05:07:29 deraadt Exp $ */
+/* $OpenBSD: bios.c,v 1.28 2000/07/25 22:36:30 mickey Exp $ */
/*
* Copyright (c) 1997-1999 Michael Shalayeff
@@ -81,7 +81,7 @@ struct cfdriver bios_cd = {
extern dev_t bootdev;
-#if NAPM > 0
+#if NAPM > 0 || defined(DEBUG)
bios_apminfo_t *apm;
#endif
#if NPCI > 0
@@ -220,6 +220,9 @@ bios_getopt()
extern int comdefaultrate; /* ic/com.c */
comdefaultrate = cdp->conspeed;
#endif
+ printf(" console 0x%x:%d",
+ cdp->consdev, cdp->conspeed);
+
cnset(cdp->consdev);
}
break;