kernel - Increase UPAGES, add kernel stack guard page
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 29 Oct 2010 18:58:06 +0000 (11:58 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 29 Oct 2010 18:58:06 +0000 (11:58 -0700)
commite40cfbd72cead0ed2b339ac62063ce89031fc5e3
tree2658a9efbf282e581f27fbae8f8a118413a9652f
parent47dc608a12063f0375f80c19aa6b85f48094b8ac
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).
sys/cpu/i386/include/param.h
sys/cpu/x86_64/include/param.h
sys/ddb/db_sysctl.c
sys/kern/lwkt_thread.c
sys/vm/vm_extern.h
sys/vm/vm_fault.c
sys/vm/vm_kern.c
sys/vm/vm_kern.h
sys/vm/vm_map.c
sys/vm/vm_map.h