freebsd-dev/sys/powerpc
Marcel Moolenaar e9b3f3045d Perform a dummy stwcx. when we switch contexts. The context
being switched out may hold a reservation. The stwcx. will
clear the reservation. This is architecturally recommended.

The scenario this addresses is as follows:
1. Thread 1 performs a lwarx and as such holds a reservation.
2. Thread 1 gets switched out (before doing the matching
   stwcx.) and thread 2 is switched in.
3. Thread 2 performs a stwcx. to the same reservation granule.
   This will succeed because the processor has the reservation
   even though thread 2 didn't do the lwarx.

Note that on some processors the address given the stwcx. is
not checked. On these processors the mere condition of having
a reservation would cause the stwcx. to succeed, irrespective
of whether the addresses are the same. The dummy stwcx. is
especially important for those processors.
2009-04-04 22:23:03 +00:00
..
aim Perform a dummy stwcx. when we switch contexts. The context 2009-04-04 22:23:03 +00:00
booke Implement kernel core dump support for Book-E processors. 2009-04-04 22:01:43 +00:00
compile
conf Remove the uscanner(4) driver, this follows the removal of the kernel scanner 2009-03-19 20:33:26 +00:00
fpu Include <sys/types.h> before <sys/systm.h> to get typedefs required 2008-04-09 08:50:37 +00:00
include Add sysarch.h. It's included by drm(4). 2009-04-04 22:05:36 +00:00
mpc85xx Make MPC85xx LAW handling and reset routines aware of the MPC8548 variant. 2009-03-13 06:28:20 +00:00
ofw Add support for 64-bit PowerPC CPUs operating in the 64-bit bridge mode 2009-04-04 00:22:44 +00:00
powermac Add support for 64-bit PowerPC CPUs operating in the 64-bit bridge mode 2009-04-04 00:22:44 +00:00
powerpc PowerPC, meet kernel core dumps. The support is based 2009-04-04 02:12:37 +00:00
psim Convert PowerPC AIM PCI and nexus busses to standard OFW bus interface. This 2008-10-14 14:54:14 +00:00