kernel - Remove unneeded critical sections from VM code, add pmap asserts
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 3 Dec 2010 16:48:05 +0000 (08:48 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 3 Dec 2010 16:51:14 +0000 (08:51 -0800)
commit080c00e6fcafedf719b52e5de548a005201b0218
treedc3d751bf2332a8303c59c69d926ac2a238e7cab
parentcdfe18157a251e29d44cd58e0ae00ec7d508f01b
kernel - Remove unneeded critical sections from VM code, add pmap asserts

* Various bits of VM code now only need vm_token and no longer need
  a critical section.

* Add pmap_page_assertzero() assertions in a couple of places when
  PMAP_DEBUG is enabled.

* Add PMAP_DEBUG as a global kernel config option.

* Be a bit more conservative and clear PG_ZERO for all page table
  pages and not just terminal page table pages.  When such pages
  are finally freed they will be zero again due to the way the
  pmap code works but don't make that assumption.
sys/conf/options
sys/kern/uipc_syscalls.c
sys/platform/pc64/x86_64/pmap.c
sys/vm/vm_fault.c
sys/vm/vm_page.c