aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/pcic
diff options
context:
space:
mode:
authorScott Long <scottl@FreeBSD.org>2002-10-02 07:44:29 +0000
committerScott Long <scottl@FreeBSD.org>2002-10-02 07:44:29 +0000
commit316ec49abd15743784b47592c00d6297dabce21b (patch)
tree0a9cc28f7570a42ae4e5df4cfc55dee42c36d9d8 /sys/dev/pcic
parenta70e34ac714c1609edfcc248799d078d66ee5f79 (diff)
downloadsrc-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/pcic')
-rw-r--r--sys/dev/pcic/i82365.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pcic/i82365.c b/sys/dev/pcic/i82365.c
index 02ca122ed7d7..387927bb0459 100644
--- a/sys/dev/pcic/i82365.c
+++ b/sys/dev/pcic/i82365.c
@@ -487,7 +487,7 @@ pcic_create_event_thread(void *arg)
}
if (kthread_create(pcic_event_thread, h, &h->event_thread,
- 0, "%s,%s", device_get_name(PCIC_H2SOFTC(h)->dev), cs)) {
+ 0, 0, "%s,%s", device_get_name(PCIC_H2SOFTC(h)->dev), cs)) {
device_printf(PCIC_H2SOFTC(h)->dev,
"cannot create event thread for sock 0x%02x\n", h->sock);
panic("pcic_create_event_thread");