freebsd-dev/sys/amd64
John Birrell 3d068827c2 Add a cnputs() function to write a string to the console with
a lock to prevent interspersed strings written from different CPUs
at the same time.

To avoid putting a buffer on the stack or having to malloc one,
space is incorporated in the per-cpu structure. The buffer
size if 128 bytes; chosen because it's the next power of 2 size
up from 80 characters.

String writes to the console are buffered up the end of the line
or until the buffer fills. Then the buffer is flushed to all
console devices.

Existing low level console output via cnputc() is unaffected by
this change. ithread calls to log() are also unaffected to avoid
blocking those threads.

A minor change to the behaviour in a panic situation is that
console output will still be buffered, but won't be written to
a tty as before. This should prevent interspersed panic output
as a number of CPUs panic before we end up single threaded
running ddb.

Reviewed by:	scottl, jhb
MFC after:	2 weeks
2006-11-01 04:54:51 +00:00
..
acpica First pass at allowing memory to be mapped using cache modes other than 2006-08-11 19:22:57 +00:00
amd64 Add a cnputs() function to write a string to the console with 2006-11-01 04:54:51 +00:00
compile Make space for compilations. 2002-07-06 02:49:07 +00:00
conf Remove the KSE option now that it's in DEFAULTS on these arches/machines. 2006-10-26 22:11:35 +00:00
ia32 Move some declaration of 32-bit signal structures into file 2006-10-05 01:56:11 +00:00
include In the userland .mcount(): 2006-10-28 13:12:06 +00:00
isa Change the x86 interrupt code to suspend/resume interrupt controllers 2006-10-10 23:23:12 +00:00
linux32 Fix a typo resulting in truncated linux32 signal trampoline code copied 2006-10-31 17:53:02 +00:00
pci MFi386: rename pcib_devclass to hostb_devclass (cosmetic here) 2006-03-13 23:58:40 +00:00
Makefile This commit adds basic support for the UFS2 filesystem. The UFS2 2002-06-21 06:18:05 +00:00