summaryrefslogtreecommitdiffstats
path: root/sys/sys/cons.h
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1995-09-10 18:57:26 +0000
committerbde <bde@FreeBSD.org>1995-09-10 18:57:26 +0000
commitad7999f808fe524da6381b2558d0d99652a393d7 (patch)
treecc5d35112b3b28ec65cb8336b5a3a765378bdd13 /sys/sys/cons.h
parenta83219b615112f81e0efa102d0de6453c21d0218 (diff)
downloadFreeBSD-src-ad7999f808fe524da6381b2558d0d99652a393d7.zip
FreeBSD-src-ad7999f808fe524da6381b2558d0d99652a393d7.tar.gz
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...
Diffstat (limited to 'sys/sys/cons.h')
-rw-r--r--sys/sys/cons.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/sys/cons.h b/sys/sys/cons.h
index d99c3e5..35d919a 100644
--- a/sys/sys/cons.h
+++ b/sys/sys/cons.h
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* from: @(#)cons.h 7.2 (Berkeley) 5/9/91
- * $Id: cons.h,v 1.8 1995/04/23 12:55:55 bde Exp $
+ * $Id: cons.h,v 1.9 1995/04/24 16:43:01 bde Exp $
*/
#ifndef _MACHINE_CONS_H_
@@ -110,6 +110,7 @@ extern int cnselect(dev_t, int, struct proc *);
/* other kernel entry points */
extern void cninit(void);
+extern void cninit_finish(void);
extern int cngetc(void);
extern int cncheckc(void);
extern void cnputc(int);
OpenPOWER on IntegriCloud