From owner-freebsd-commit Sun Sep 10 11:57:35 1995 Return-Path: commit-owner Received: (from majordom@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id LAA16378 for freebsd-commit-outgoing; Sun, 10 Sep 1995 11:57:35 -0700 Received: (from majordom@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id LAA16365 for cvs-all-outgoing; Sun, 10 Sep 1995 11:57:33 -0700 Received: (from majordom@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id LAA16352 for cvs-sys-outgoing; Sun, 10 Sep 1995 11:57:32 -0700 Received: (from bde@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id LAA16342 ; Sun, 10 Sep 1995 11:57:27 -0700 Date: Sun, 10 Sep 1995 11:57:27 -0700 From: Bruce Evans Message-Id: <199509101857.LAA16342@freefall.freebsd.org> To: CVS-commiters, cvs-sys Subject: cvs commit: src/sys/i386/i386 autoconf.c cons.c cons.h Sender: commit-owner@FreeBSD.org Precedence: bulk bde 95/09/10 11:57:27 Modified: sys/i386/i386 autoconf.c cons.c cons.h Log: cons.c: Split off cdevsw initialization in cninit() into a new function cninit_finish() that isn't called until all hardware device drivers have been attached. The bdevsw entry of the driver for the physical console needs to be hooked after the physical driver has been attached in case the attachment modified the entry. Rearrange cninit() to avoid changing cn_tab until the driver for the physical console has been initialized, so that the previous driver (if any) can be used for debugging. Start removing half-baked lint support. bdevsw functions usually have unused args but /*ARGSUSED*/ was used for only about 5% of them. cons.h: Declare cn_init_finish(). autoconf.c: Call cn_init_finish(). Start adding prototypes. Functions with bogus linkage (extern where static is probably should be static) are explicitly declared as extern so that the can be found easily (extern in a non-header is usually wrong). All: Continue cleaning up init stuff: init functions shall be static; INITs should be at the start of files...