diff options
author | alc <alc@FreeBSD.org> | 2003-06-14 23:23:55 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2003-06-14 23:23:55 +0000 |
commit | 83f108b04dd3280195b5f0cf6bc2af10630e5f75 (patch) | |
tree | 5b005cceb283a32d0b4cb30493fc1a788fe8a46b /sys/sparc64/include | |
parent | cf4a22224f432bfbaaa9bceff6eee597501588ef (diff) | |
download | FreeBSD-src-83f108b04dd3280195b5f0cf6bc2af10630e5f75.zip FreeBSD-src-83f108b04dd3280195b5f0cf6bc2af10630e5f75.tar.gz |
Migrate the thread stack management functions from the machine-dependent
to the machine-independent parts of the VM. At the same time, this
introduces vm object locking for the non-i386 platforms.
Two details:
1. KSTACK_GUARD has been removed in favor of KSTACK_GUARD_PAGES. The
different machine-dependent implementations used various combinations
of KSTACK_GUARD and KSTACK_GUARD_PAGES. To disable guard page, set
KSTACK_GUARD_PAGES to 0.
2. Remove the (unnecessary) clearing of PG_ZERO in vm_thread_new. In
5.x, (but not 4.x,) PG_ZERO can only be set if VM_ALLOC_ZERO is passed
to vm_page_alloc() or vm_page_grab().
Diffstat (limited to 'sys/sparc64/include')
-rw-r--r-- | sys/sparc64/include/param.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/sparc64/include/param.h b/sys/sparc64/include/param.h index 94a6ef8..7ee6360 100644 --- a/sys/sparc64/include/param.h +++ b/sys/sparc64/include/param.h @@ -105,11 +105,10 @@ #define PAGE_MASK_MAX PAGE_MASK_4M #define KSTACK_PAGES 4 /* pages of kernel stack (with pcb) */ +#define KSTACK_GUARD_PAGES 1 /* pages of kstack guard; 0 disables */ #define UAREA_PAGES 1 /* pages of user area */ #define PCPU_PAGES 1 -#define KSTACK_GUARD /* compile in kstack guard page */ -#define KSTACK_GUARD_PAGES 1 /* * Mach derived conversion macros |