CVSROOT:        /cvs
Module name:    src
Changes by:     a...@cvs.openbsd.org    2009/04/23 01:42:02

Modified files:
        sys/arch/amd64/amd64: cpu.c genassym.cf lapic.c locore.S pmap.c 
                              vector.S vm_machdep.c 
        sys/arch/amd64/include: cpu.h i82489var.h pmap.h 

Log message:
Make pmap_deactivate a NOP.

Instead of keeping a bitmask of on which cpu the pmap might be active which
we clear in pmap_deactivate, always keep a pointer to the currently loaded
pmap in cpu_info. We can now optimize a context switch to the kernel pmap
(idle and kernel threads) to keep the previously loaded pmap still loaded
and then reuse that pmap if we context switch back to the same process.

Introduce a new IPI to force a pmap reload before the pmap is destroyed.

Clean up cpu_switchto.

toby@ ok

Reply via email to