freebsd-skq/sys/powerpc
Rafal Jaworowski 0a35b40f8d Make Book-E debug register state part of the PCB context.
Previously, DBCR0 flags were set "globally", but this leads to problems
because Book-E fine grained debug settings work only in conjuction with the
debug master enable bit in MSR: in scenarios when the DBCR0 was set with
intention to debug one process, but another one with MSR[DE] set got
scheduled, the latter would immediately cause debug exceptions to occur upon
execution of its own code instructions (and not the one intended for
debugging).

To avoid such problems and properly handle debugging context, DBCR0 state
should be managed individually per process.

Submitted by:	Grzegorz Bernacki gjb ! semihalf dot com
Reviewed by:	marcel
2009-02-27 12:08:24 +00:00
..
aim Fix comment: we write the trap vector to SPRG3, not SPRG0. 2009-02-23 19:31:48 +00:00
booke Make Book-E debug register state part of the PCB context. 2009-02-27 12:08:24 +00:00
compile
conf Change over the usb kernel options to the new stack (retaining existing 2009-02-23 18:34:56 +00:00
fpu Include <sys/types.h> before <sys/systm.h> to get typedefs required 2008-04-09 08:50:37 +00:00
include Make Book-E debug register state part of the PCB context. 2009-02-27 12:08:24 +00:00
mpc85xx Extend and improve MPC85XX Local Bus management. 2008-12-18 18:27:12 +00:00
ofw Adapt parts of the sparc64 Open Firmware bus enumeration code (in particular, 2008-12-15 15:31:10 +00:00
powermac Fix a race condition in kiic(4) made possible by the way the device's STOP 2009-01-20 14:09:12 +00:00
powerpc Make Book-E debug register state part of the PCB context. 2009-02-27 12:08:24 +00:00
psim Convert PowerPC AIM PCI and nexus busses to standard OFW bus interface. This 2008-10-14 14:54:14 +00:00