freebsd-dev/sys/ia64
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 Canonize the include of acpi.h. 2005-09-11 18:39:03 +00:00
compile
conf Remove the KSE option now that it's in DEFAULTS on these arches/machines. 2006-10-26 22:11:35 +00:00
disasm Update to SDM 2.2: 2006-06-24 19:21:11 +00:00
ia32 Include freebsd32_signal.h now that signal-related definitions are 2006-10-06 19:33:44 +00:00
ia64 Add a cnputs() function to write a string to the console with 2006-11-01 04:54:51 +00:00
include PR: 2006-10-04 21:37:10 +00:00
isa - Move bus dependent defines to {isa,cbus}_dmareg.h. 2005-05-14 10:14:56 +00:00
pci