From 4ab36ad79c87b45fa4331355e0b15a7de3fab8c8 Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Tue, 25 Jul 2000 22:36:31 +0000 Subject: allow compiling -DDEBUG w/o apm0 in he config; pointed by cleb . also, print console device and speed before switching to the new console. --- sys/arch/i386/i386/bios.c | 7 +++++-- 1 file 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; -- cgit v1.2.3