From 49a2507bd1c2d72eef3d9c9d12c9d0aeef9f3f7b Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sat, 14 Jun 2003 23:23:55 +0000 Subject: 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(). --- sys/alpha/include/param.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/alpha/include') diff --git a/sys/alpha/include/param.h b/sys/alpha/include/param.h index d75b932dd00a1..60957140a8900 100644 --- a/sys/alpha/include/param.h +++ b/sys/alpha/include/param.h @@ -118,9 +118,9 @@ #define SINCR 1 /* increment of stack/NBPG */ #define KSTACK_PAGES 2 /* pages of kstack (with pcb) */ +#define KSTACK_GUARD_PAGES 1 /* pages of kstack guard; 0 disables */ #define UAREA_PAGES 1 /* pages of u-area */ -#define KSTACK_GUARD /* compile in kstack guard page */ /* * Mach derived conversion macros -- cgit v1.3