]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Collect all the (now equivalent) pmap_new_proc/pmap_dispose_proc/
authorPeter Wemm <peter@FreeBSD.org>
Sun, 7 Jul 2002 23:05:27 +0000 (23:05 +0000)
committerPeter Wemm <peter@FreeBSD.org>
Sun, 7 Jul 2002 23:05:27 +0000 (23:05 +0000)
commita136efe9b67d5b588bd66a6d3276a82b04e799d5
tree74cd2868c7e5812fca8fc59540abac90c945c633
parentf9751ec2cd2a2c120699dae1eff650c1a56fb861
Collect all the (now equivalent) pmap_new_proc/pmap_dispose_proc/
pmap_swapin_proc/pmap_swapout_proc functions from the MD pmap code
and use a single equivalent MI version.  There are other cleanups
needed still.

While here, use the UMA zone hooks to keep a cache of preinitialized
proc structures handy, just like the thread system does.  This eliminates
one dependency on 'struct proc' being persistent even after being freed.
There are some comments about things that can be factored out into
ctor/dtor functions if it is worth it.  For now they are mostly just
doing statistics to get a feel of how it is working.
14 files changed:
sys/alpha/alpha/pmap.c
sys/amd64/amd64/pmap.c
sys/i386/i386/pmap.c
sys/ia64/ia64/pmap.c
sys/kern/kern_kse.c
sys/kern/kern_proc.c
sys/kern/kern_thread.c
sys/powerpc/aim/mmu_oea.c
sys/powerpc/powerpc/mmu_oea.c
sys/powerpc/powerpc/pmap.c
sys/sparc64/sparc64/pmap.c
sys/vm/pmap.h
sys/vm/vm_extern.h
sys/vm/vm_glue.c