ecfb41d217
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 |
||
---|---|---|
.. | ||
clock.c | ||
copyinout.c | ||
interrupt.c | ||
locore32.S | ||
locore64.S | ||
locore.S | ||
machdep.c | ||
mmu_oea64.c | ||
mmu_oea.c | ||
mp_cpudep.c | ||
nexus.c | ||
ofw_machdep.c | ||
ofwmagic.S | ||
slb.c | ||
swtch32.S | ||
swtch64.S | ||
trap_subr32.S | ||
trap_subr64.S | ||
trap.c | ||
uma_machdep.c | ||
vm_machdep.c |