summaryrefslogtreecommitdiffstats
path: root/sys/alpha/isa
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2000-10-05 23:09:57 +0000
committerjhb <jhb@FreeBSD.org>2000-10-05 23:09:57 +0000
commit71938e9fcdc7dcdcee180aaf1693bdfbc2f62749 (patch)
treef79e43496c9e52b9fb7344402240cb467ffe42b4 /sys/alpha/isa
parentd3d06a3e7cf8a76f1ff2e19d172e10e60b30aed5 (diff)
downloadFreeBSD-src-71938e9fcdc7dcdcee180aaf1693bdfbc2f62749.zip
FreeBSD-src-71938e9fcdc7dcdcee180aaf1693bdfbc2f62749.tar.gz
- Heavyweight interrupt threads on the alpha for device I/O interrupts.
- Make softinterrupts (SWI's) almost completely MI, and divorce them completely from the x86 hardware interrupt code. - The ihandlers array is now gone. Instead, there is a MI shandlers array that just contains SWI handlers. - Most of the former machine/ipl.h files have moved to a new sys/ipl.h. - Stub out all the spl*() functions on all architectures. Submitted by: dfr
Diffstat (limited to 'sys/alpha/isa')
-rw-r--r--sys/alpha/isa/isa.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/sys/alpha/isa/isa.c b/sys/alpha/isa/isa.c
index 7e37660..96cfe1c 100644
--- a/sys/alpha/isa/isa.c
+++ b/sys/alpha/isa/isa.c
@@ -33,7 +33,9 @@
#include <sys/bus.h>
#include <machine/bus.h>
#include <sys/malloc.h>
+#include <sys/proc.h>
#include <sys/rman.h>
+#include <sys/interrupt.h>
#include <isa/isareg.h>
#include <isa/isavar.h>
@@ -315,9 +317,12 @@ isa_setup_intr(device_t dev, device_t child,
ii->arg = arg;
ii->irq = irq->r_start;
- error = alpha_setup_intr(0x800 + (irq->r_start << 4),
- isa_handle_intr, ii, &ii->ih,
- &intrcnt[INTRCNT_ISA_IRQ + irq->r_start]);
+ error = alpha_setup_intr(
+ device_get_nameunit(child ? child : dev),
+ 0x800 + (irq->r_start << 4), isa_handle_intr, ii,
+ ithread_priority(flags), &ii->ih,
+ &intrcnt[INTRCNT_ISA_IRQ + irq->r_start],
+ NULL, NULL);
if (error) {
free(ii, M_DEVBUF);
return error;
OpenPOWER on IntegriCloud