freebsd-src/sys/conf
Ed Schouten c9dba40cc8 Reimplement the /dev/console device node.
One of the pieces of code that I had left alone during the development
of the MPSAFE TTY layer, was tty_cons.c. This file actually has two
different functions:

- It contains low-level console input/output routines (cnputc(), etc).

- It creates /dev/console and wraps all its cdevsw calls to the
  appropriate TTY.

This commit reimplements the second set of functions by moving it
directly into the TTY layer. /dev/console is now a character device node
that's basically a regular TTY, but does a lookup of `si_drv1' each time
you open it. d_write has also been changed to call log_console().
d_close() is not present, because we must make sure we don't revoke the
TTY after writing a log message to it.

Even though I'm not convinced this is in line with the future directions
of our console code, it is a good move for now. It removes recursive
locking from the top half of the TTY layer. The previous implementation
called into the TTY layer with Giant held.

I'm renaming tty_cons.c to kern_cons.c now. The code hardly contains any
TTY related bits, so we'd better give it a less misleading name.

Tested by:	Andrzej Tobola <ato iem pw edu pl>,
		Carlos A.M. dos Santos <unixmania gmail com>,
		Eygene Ryabinkin <rea-fbsd codelabs ru>
2008-11-01 08:35:28 +00:00
..
defines
files Reimplement the /dev/console device node. 2008-11-01 08:35:28 +00:00
files.amd64 Add freebsd32 compat shims for ioctl(2) 2008-09-22 16:09:16 +00:00
files.arm Add arm/conf/DEFAULTS and populate it with: 2008-10-23 01:51:55 +00:00
files.i386 Update to xen specific files for SMP 2008-09-23 03:13:33 +00:00
files.ia64 Add freebsd32 compat shims for ioctl(2) 2008-09-22 16:09:16 +00:00
files.mips Add mips/conf/DEFAULTS and populate it with: 2008-10-23 02:16:38 +00:00
files.pc98 Resurrect the sbni(4) driver. Someone finally tested the MPSAFE patches and 2008-09-10 18:36:58 +00:00
files.powerpc Add ADB support. This provides support for the external ADB bus on the PowerMac 2008-10-26 19:37:38 +00:00
files.sparc64 Add a driver for Schizo' Fireplane/Safari to PCI 2.1 and Tomatillo' 2008-09-28 00:07:05 +00:00
files.sun4v Switch sun4v to back to using its own clock.c, which was ressurected 2008-09-03 17:31:13 +00:00
kern.mk Disable SSP for mips until support is added to the base architecture. 2008-07-23 06:16:34 +00:00
kern.post.mk Add CTF conversion to the objects compiled from generated code. 2008-07-05 06:12:14 +00:00
kern.pre.mk Update cxgb include paths to not require prefixing with dev/cxgb 2008-09-23 03:16:54 +00:00
kmod.mk Allow clock_if.m to be referenced by kernel modules, this is useful 2008-10-02 14:45:29 +00:00
kmod_syms.awk
ldscript.amd64
ldscript.arm Create a non-elf pure binary version of the kernel as well. 2005-11-24 02:25:49 +00:00
ldscript.i386
ldscript.ia64
ldscript.mips Merge from p4: add Juniper license statement. 2008-09-19 03:36:37 +00:00
ldscript.mips.cfe Fix the CFE ldscript after the cutover to tradmips. 2008-10-13 06:07:58 +00:00
ldscript.powerpc Avoid hardcoding the kernel link address in the linker script. 2008-02-27 00:03:23 +00:00
ldscript.sparc64
Makefile.amd64 Add a kernel option for amd64 to compile with the frame on the stack 2008-05-23 03:52:55 +00:00
Makefile.arm Introduce basic support for Marvell families of system-on-chip ARM devices: 2008-10-13 20:07:13 +00:00
Makefile.i386 Revert config(8) version bump. It brings major pain for people working on 2007-05-16 17:23:54 +00:00
Makefile.ia64 Remove definition of the GCC3 variable. It was introduced in rev. 2007-06-02 21:30:39 +00:00
Makefile.mips Merge in the mips specific configuration files and such from the 2008-04-13 06:25:43 +00:00
Makefile.pc98 Revert config(8) version bump. It brings major pain for people working on 2007-05-16 17:23:54 +00:00
Makefile.powerpc Revert config(8) version bump. It brings major pain for people working on 2007-05-16 17:23:54 +00:00
Makefile.sparc64 Revert config(8) version bump. It brings major pain for people working on 2007-05-16 17:23:54 +00:00
Makefile.sun4v Revert config(8) version bump. It brings major pain for people working on 2007-05-16 17:23:54 +00:00
makeLINT.mk
makeLINT.sed
newvers.sh Backout svn r183528. 2008-10-03 10:08:36 +00:00
NOTES Add RL_TWISTER_ENABLE. 2008-11-01 00:28:44 +00:00
options Add RL_TWISTER_ENABLE option. This enables the magic bits to do long 2008-10-31 23:24:13 +00:00
options.amd64 Remove ISDN4BSD (I4B) from HEAD as it is not MPSAFE and 2008-05-26 10:40:09 +00:00
options.arm Introduce basic support for Marvell families of system-on-chip ARM devices: 2008-10-13 20:07:13 +00:00
options.i386 Integrate configuration bits for compling xen. 2008-08-15 20:58:57 +00:00
options.ia64 Add option EXCEPTION_TRACING, which enables KTR-like functionality 2007-07-30 22:42:33 +00:00
options.mips Merge from p4: add Juniper license statement. 2008-09-19 03:36:37 +00:00
options.pc98 Remove obselete PECOFF image activator support. 2008-06-14 12:51:44 +00:00
options.powerpc Initial support for Freescale PowerQUICC III MPC85xx system-on-chip family. 2008-03-03 17:17:00 +00:00
options.sparc64 Add a driver for Schizo' Fireplane/Safari to PCI 2.1 and Tomatillo' 2008-09-28 00:07:05 +00:00
options.sun4v Remove remnants from the sparc64 origin of this file and which are 2007-01-19 12:22:50 +00:00
systags.sh Use a simpler way to reach the <machine> include dir, which should 2005-12-03 21:37:54 +00:00