diff options
author | Scott Long <scottl@FreeBSD.org> | 2002-10-02 07:44:29 +0000 |
---|---|---|
committer | Scott Long <scottl@FreeBSD.org> | 2002-10-02 07:44:29 +0000 |
commit | 316ec49abd15743784b47592c00d6297dabce21b (patch) | |
tree | 0a9cc28f7570a42ae4e5df4cfc55dee42c36d9d8 /sys/dev/usb | |
parent | a70e34ac714c1609edfcc248799d078d66ee5f79 (diff) | |
download | src-316ec49abd15743784b47592c00d6297dabce21b.tar.gz src-316ec49abd15743784b47592c00d6297dabce21b.zip |
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
Notes
Notes:
svn path=/head/; revision=104354
Diffstat (limited to 'sys/dev/usb')
-rw-r--r-- | sys/dev/usb/usb_port.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/usb_port.h b/sys/dev/usb/usb_port.h index cbf90fd79bf4..1894b9a705e9 100644 --- a/sys/dev/usb/usb_port.h +++ b/sys/dev/usb/usb_port.h @@ -365,9 +365,9 @@ typedef struct thread *usb_proc_ptr; #define memcpy(d, s, l) bcopy((s),(d),(l)) #define memset(d, v, l) bzero((d),(l)) #define usb_kthread_create1(f, s, p, a0, a1) \ - kthread_create((f), (s), (p), RFHIGHPID, (a0), (a1)) + kthread_create((f), (s), (p), RFHIGHPID, 0, (a0), (a1)) #define usb_kthread_create2(f, s, p, a0) \ - kthread_create((f), (s), (p), RFHIGHPID, (a0)) + kthread_create((f), (s), (p), RFHIGHPID, 0, (a0)) #define usb_kthread_create kthread_create #define config_pending_incr() |