freebsd-skq/sys/powerpc/booke
jhb 45c0759920 Adjust the order of operations in spinlock_enter() and spinlock_exit() to
work properly with single-stepping in a kernel debugger.  Specifically,
these routines have always disabled interrupts before increasing the nesting
count and restored the prior state of interrupts after decreasing the nesting
count to avoid problems with a nested interrupt not disabling interrupts
when acquiring a spin lock.  However, trap interrupts for single-stepping
can still occur even when interrupts are disabled.  Now the saved state of
interrupts is not saved in the thread until after interrupts have been
disabled and the nesting count has been increased.  Similarly, the saved
state from the thread cannot be read once the nesting count has been
decreased to zero.  To fix this, use temporary variables to store interrupt
state and shuffle it between the thread's MD area and the appropriate
registers.

In cooperation with:	bde
MFC after:     1 month
2010-11-05 13:42:58 +00:00
..
clock.c Update PowerPC event timer code to use new event timers infrastructure. 2010-09-11 04:45:51 +00:00
copyinout.c Merge r198724 to Book-E. casuword() non-atomically read the current value 2010-02-20 16:13:43 +00:00
interrupt.c Update PowerPC event timer code to use new event timers infrastructure. 2010-09-11 04:45:51 +00:00
locore.S MFppc64: 2010-07-13 05:32:19 +00:00
machdep.c Adjust the order of operations in spinlock_enter() and spinlock_exit() to 2010-11-05 13:42:58 +00:00
mp_cpudep.c Add SMP support on U3-based G5 systems. This does not yet work perfectly: 2009-10-23 03:17:02 +00:00
platform_bare.c Update PowerPC event timer code to use new event timers infrastructure. 2010-09-11 04:45:51 +00:00
pmap.c Introduce inheritance into the PowerPC MMU kobj interface. 2010-09-15 00:17:52 +00:00
swtch.S MFppc64: 2010-07-13 05:32:19 +00:00
trap_subr.S Actually pass a pointer to the trapframe to powerpc_extr_interrupt(). 2010-03-23 01:07:30 +00:00
trap.c Remove unused KTRACE includes. 2010-08-19 16:41:27 +00:00
vm_machdep.c MFppc64: 2010-07-13 05:32:19 +00:00