git: kernel - Remove unneeded critical sections from VM code, add pmap asserts

Matthew Dillon dillon at crater.dragonflybsd.org
Fri Dec 3 08:54:42 PST 2010


commit 080c00e6fcafedf719b52e5de548a005201b0218
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Fri Dec 3 08:48:05 2010 -0800

    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.

Summary of changes:
 sys/conf/options                |    1 +
 sys/kern/uipc_syscalls.c        |    2 -
 sys/platform/pc64/x86_64/pmap.c |   24 ++++++++++++++++----
 sys/vm/vm_fault.c               |   40 +++++++--------------------------
 sys/vm/vm_page.c                |   45 +-------------------------------------
 5 files changed, 31 insertions(+), 81 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/080c00e6fcafedf719b52e5de548a005201b0218


-- 
DragonFly BSD source repository





More information about the Commits mailing list