From 316ec49abd15743784b47592c00d6297dabce21b Mon Sep 17 00:00:00 2001 From: Scott Long Date: Wed, 2 Oct 2002 07:44:29 +0000 Subject: Some kernel threads try to do significant work, and the default KSTACK_PAGES doesn't give them enough stack to do much before blowing away the pcb. This adds MI and MD code to allow the allocation of an alternate kstack who's size can be speficied when calling kthread_create. Passing the value 0 prevents the alternate kstack from being created. Note that the ia64 MD code is missing for now, and PowerPC was only partially written due to the pmap.c being incomplete there. Though this patch does not modify anything to make use of the alternate kstack, acpi and usb are good candidates. Reviewed by: jake, peter, jhb --- sys/dev/random/randomdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/dev/random/randomdev.c') diff --git a/sys/dev/random/randomdev.c b/sys/dev/random/randomdev.c index e0184289901f7..d965cbc8d366f 100644 --- a/sys/dev/random/randomdev.c +++ b/sys/dev/random/randomdev.c @@ -282,7 +282,7 @@ random_modevent(module_t mod __unused, int type, void *data __unused) /* Start the hash/reseed thread */ error = kthread_create(random_kthread, NULL, - &random_kthread_proc, RFHIGHPID, "random"); + &random_kthread_proc, RFHIGHPID, 0, "random"); if (error != 0) return error; -- cgit v1.3