Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Sep 1995 11:57:27 -0700
From:      Bruce Evans <bde>
To:        CVS-commiters, cvs-sys
Subject:   cvs commit: src/sys/i386/i386 autoconf.c cons.c cons.h
Message-ID:  <199509101857.LAA16342@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
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...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199509101857.LAA16342>