freebsd-dev/sys/dev/ofw
Robert Watson 4cf7545589 Attempt to make break-to-debugger and alternative break-to-debugger more
accessible:

(1) Always compile in support for breaking into the debugger if options
    KDB is present in the kernel.

(2) Disable both by default, but allow them to be enabled via tunables
    and sysctls debug.kdb.break_to_debugger and
    debug.kdb.alt_break_to_debugger.

(3) options BREAK_TO_DEBUGGER and options ALT_BREAK_TO_DEBUGGER continue
    to behave as before -- only now instead of compiling in
    break-to-debugger support, they change the default values of the
    above sysctls to enable those features by default.  Current kernel
    configurations should, therefore, continue to behave as expected.

(4) Migrate alternative break-to-debugger state machine logic out of
    individual device drivers into centralised KDB code.  This has a
    number of upsides, but also one downside: it's now tricky to release
    sio spin locks when entering the debugger, so we don't.  However,
    similar logic does not exist in other device drivers, including uart.

(5) dcons requires some special handling; unlike other console types, it
    allows overriding KDB's own debugger selection, so we need a new
    interface to KDB to allow that to work.

GENERIC kernels in -CURRENT will now support break-to-debugger as long as
appropriate boot/run-time options are set, which should improve the
debuggability of BETA kernels significantly.

MFC after:	3 weeks
Reviewed by:	kib, nwhitehorn
Approved by:	re (bz)
2011-08-26 21:46:36 +00:00
..
ofw_bus_if.m
ofw_bus_subr.c Provide for multiple, cascaded PICs on PowerPC systems, and extend the 2010-06-18 14:06:27 +00:00
ofw_bus_subr.h Provide for multiple, cascaded PICs on PowerPC systems, and extend the 2010-06-18 14:06:27 +00:00
ofw_bus.h
ofw_console.c Attempt to make break-to-debugger and alternative break-to-debugger more 2011-08-26 21:46:36 +00:00
ofw_disk.c Missed style fixes. 2009-06-14 00:15:26 +00:00
ofw_fdt.c Return IEEE 1275 compliant error codes. 2010-11-11 13:42:46 +00:00
ofw_if.m Change OF_interpret() to also take an array of cell_t (missed in r209801). 2010-09-11 18:55:00 +00:00
ofw_iicbus.c bus_add_child: change type of order parameter to u_int 2010-09-10 11:19:03 +00:00
ofw_pci.h The NetBSD Foundation has granted permission to remove clause 3 and 4 from 2010-03-01 16:52:11 +00:00
ofw_standard.c Change OF_interpret() to also take an array of cell_t (missed in r209801). 2010-09-11 18:55:00 +00:00
ofwvar.h Fix style. 2009-06-14 00:05:38 +00:00
openfirm.c Make all OF client interface calls return the maximum kind of 2010-11-09 19:45:29 +00:00
openfirm.h Missed a file in r209803: this header contains a definition of 2010-07-08 18:15:06 +00:00
openfirmio.c Fix style. 2009-06-14 00:05:38 +00:00
openfirmio.h
openpromio.c
openpromio.h