CVSROOT: /cvs Module name: src Changes by: a...@cvs.openbsd.org 2009/06/02 18:49:12
Modified files: sys/arch/i386/i386: apicvec.s cpu.c genassym.cf lapic.c locore.s pmap.c vm_machdep.c sys/arch/i386/include: cpu.h i82489var.h pmap.h Log message: Just like on amd64. Instead of keeping a bitmap of which cpus a pmap is active on, save a curpmap pointer in cpu_info. This lets us simplify a few things and do lazy context switching from a user process to a kernel thread. There's a new IPI introduced for forcing a cr3 reload when we're tearing down a dead pmap. kettenis@ ok (after I polished a few minor things)