From owner-cvs-all Sun Oct 11 03:19:17 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA10180 for cvs-all-outgoing; Sun, 11 Oct 1998 03:19:17 -0700 (PDT) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA10168; Sun, 11 Oct 1998 03:19:13 -0700 (PDT) (envelope-from peter@FreeBSD.org) From: Peter Wemm Received: (from peter@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id DAA17488; Sun, 11 Oct 1998 03:19:12 -0700 (PDT) Date: Sun, 11 Oct 1998 03:19:12 -0700 (PDT) Message-Id: <199810111019.DAA17488@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: cvs commit: src/sys/boot/common console.c Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk peter 1998/10/11 03:19:11 PDT Modified files: sys/boot/common console.c Log: Probe all consoles, not just the first. It doesn't make a lot of difference, but might later on when we implement some sort of multi-head console mode. Select a console after probing them all. Don't strdup a potentially NULL return from getenv(). If we don't select an active console, choose the first regardless. Call the console init function, at startup time and on a manual change. The env_setenv() function needs EV_VOLATILE because it's pointing to data that isn't malloc'ed and will cause a fault if it's freed later. Revision Changes Path 1.3 +21 -7 src/sys/boot/common/console.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message