freebsd-skq/sys/powerpc/aim
nwhitehorn ecfb41d217 Restructure the way the copyin/copyout segment is stored to prevent a
concurrency bug. Since all SLB/SR entries were invalidated during an
exception, a decrementer exception could cause the user segment to be
invalidated during a copyin()/copyout() without a thread switch that
would cause it to be restored from the PCB, potentially causing the
operation to continue on invalid memory. This is now handled by explicit
restoration of segment 12 from the PCB on 32-bit systems and a check in
the Data Segment Exception handler on 64-bit.

While here, cause copyin()/copyout() to check whether the requested
user segment is already installed, saving some pipeline flushes, and
fix the synchronization primitives around the mtsr and slbmte
instructions to prevent accessing stale segments.

MFC after:	2 weeks
2010-10-30 23:07:30 +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 Restructure the way the copyin/copyout segment is stored to prevent a 2010-10-30 23:07:30 +00:00
interrupt.c Update PowerPC event timer code to use new event timers infrastructure. 2010-09-11 04:45:51 +00:00
locore32.S MFppc64: 2010-07-13 05:32:19 +00:00
locore64.S MFppc64: 2010-07-13 05:32:19 +00:00
locore.S MFppc64: 2010-07-13 05:32:19 +00:00
machdep.c Handle vector assist traps without a kernel panic, by setting denormalized 2010-10-05 18:08:07 +00:00
mmu_oea64.c Follow exactly the steps in architecture manual for correctly invalidating 2010-10-04 16:07:48 +00:00
mmu_oea.c Follow exactly the steps in architecture manual for correctly invalidating 2010-10-04 16:07:48 +00:00
mp_cpudep.c MFppc64: 2010-07-13 05:32:19 +00:00
nexus.c bus_add_child: change type of order parameter to u_int 2010-09-10 11:19:03 +00:00
ofw_machdep.c Restructure how reset and poweroff are handled on PowerPC systems, since 2010-08-31 15:27:46 +00:00
ofwmagic.S The NetBSD Foundation has granted permission to remove clause 3 and 4 from 2010-03-03 17:07:02 +00:00
slb.c Restructure the way the copyin/copyout segment is stored to prevent a 2010-10-30 23:07:30 +00:00
swtch32.S MFppc64: 2010-07-13 05:32:19 +00:00
swtch64.S Restructure the way the copyin/copyout segment is stored to prevent a 2010-10-30 23:07:30 +00:00
trap_subr32.S Restructure the way the copyin/copyout segment is stored to prevent a 2010-10-30 23:07:30 +00:00
trap_subr64.S Restructure the way the copyin/copyout segment is stored to prevent a 2010-10-30 23:07:30 +00:00
trap.c Restructure the way the copyin/copyout segment is stored to prevent a 2010-10-30 23:07:30 +00:00
uma_machdep.c Reduce KVA pressure on OEA64 systems running in bridge mode by mapping 2010-02-20 16:23:29 +00:00
vm_machdep.c Restructure the way the copyin/copyout segment is stored to prevent a 2010-10-30 23:07:30 +00:00