DragonFly BSD
DragonFly commits List (threaded) for 2010-10
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: kernel - Increase UPAGES, add kernel stack guard page


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 29 Oct 2010 12:03:08 -0700 (PDT)

commit e40cfbd72cead0ed2b339ac62063ce89031fc5e3
Author: Matthew Dillon <dillon@apollo.backplane.com>
Date:   Fri Oct 29 11:58:06 2010 -0700

    kernel - Increase UPAGES, add kernel stack guard page
    
    * Increase UPAGES from 3 to 4.  This is the kernel thread stack size.
    
    * Add infrastructure to make it possible to allocate a guard page along
      with a kmem allocation and use it when allocating kernel thread stacks.
    
      The first page of stacks allocated this way will be non-accessible
      (hence the increase in UPAGES).

Summary of changes:
 sys/cpu/i386/include/param.h   |    2 +-
 sys/cpu/x86_64/include/param.h |    2 +-
 sys/ddb/db_sysctl.c            |   41 ++++++++++++++++++++++++++++++++++++---
 sys/kern/lwkt_thread.c         |    2 +-
 sys/vm/vm_extern.h             |   10 +++++++++
 sys/vm/vm_fault.c              |   19 ++++++++++++++---
 sys/vm/vm_kern.c               |   17 +++++++++++++--
 sys/vm/vm_kern.h               |    1 +
 sys/vm/vm_map.c                |    2 +
 sys/vm/vm_map.h                |    2 +
 10 files changed, 84 insertions(+), 14 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/e40cfbd72cead0ed2b339ac62063ce89031fc5e3


-- 
DragonFly BSD source repository



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]