summaryrefslogtreecommitdiff
path: root/i386
diff options
context:
space:
mode:
Diffstat (limited to 'i386')
-rw-r--r--i386/i386/ipl.h1
-rw-r--r--i386/i386/pic.c8
-rw-r--r--i386/i386/pic.h1
-rw-r--r--i386/i386/pit.c2
-rw-r--r--i386/i386at/autoconf.c10
-rw-r--r--i386/i386at/kd_mouse.c4
-rw-r--r--i386/i386at/pic_isa.c9
7 files changed, 5 insertions, 30 deletions
diff --git a/i386/i386/ipl.h b/i386/i386/ipl.h
index 2da2e89f..fb939789 100644
--- a/i386/i386/ipl.h
+++ b/i386/i386/ipl.h
@@ -74,7 +74,6 @@ WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include <machine/machspl.h>
extern void (*ivect[])();
extern int iunit[];
-extern int intpri[];
extern spl_t curr_ipl;
#endif /* __ASSEMBLER__ */
#endif /* KERNEL */
diff --git a/i386/i386/pic.c b/i386/i386/pic.c
index 0c2e2bc8..1991103a 100644
--- a/i386/i386/pic.c
+++ b/i386/i386/pic.c
@@ -176,11 +176,3 @@ intnull(int unit_dev)
{
printf("intnull(%d)\n", unit_dev);
}
-
-int prtnull_count = 0;
-
-void
-prtnull(int unit)
-{
- ++prtnull_count;
-}
diff --git a/i386/i386/pic.h b/i386/i386/pic.h
index 1d224a44..cb421bd5 100644
--- a/i386/i386/pic.h
+++ b/i386/i386/pic.h
@@ -179,7 +179,6 @@ WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#ifndef __ASSEMBLER__
extern void picinit (void);
extern int curr_pic_mask;
-extern void prtnull(int unit);
extern void intnull(int unit);
#endif /* __ASSEMBLER__ */
diff --git a/i386/i386/pit.c b/i386/i386/pit.c
index bb6a4f79..4e3feeec 100644
--- a/i386/i386/pit.c
+++ b/i386/i386/pit.c
@@ -75,8 +75,6 @@ clkstart(void)
/* Only one PIT initialization is needed */
return;
- intpri[0] = SPLHI;
-
s = sploff(); /* disable interrupts */
/* Since we use only timer 0, we program that.
diff --git a/i386/i386at/autoconf.c b/i386/i386at/autoconf.c
index 6ed2270c..151e3fd2 100644
--- a/i386/i386at/autoconf.c
+++ b/i386/i386at/autoconf.c
@@ -126,12 +126,11 @@ void take_dev_irq(
{
int pic = (int)dev->sysdep1;
- if (intpri[pic] == 0) {
+ if (ivect[pic] == intnull) {
iunit[pic] = dev->unit;
ivect[pic] = dev->intr;
- intpri[pic] = (int)dev->sysdep;
} else {
- printf("The device below will clobber IRQ %d.\n", pic);
+ printf("The device below will clobber IRQ %d (%p).\n", pic, ivect[pic]);
printf("You have two devices at the same IRQ.\n");
printf("This won't work. Reconfigure your hardware and try again.\n");
printf("%s%d: port = %lx, spl = %ld, pic = %d.\n",
@@ -146,12 +145,11 @@ void take_ctlr_irq(
const struct bus_ctlr *ctlr)
{
int pic = ctlr->sysdep1;
- if (intpri[pic] == 0) {
+ if (ivect[pic] == intnull) {
iunit[pic] = ctlr->unit;
ivect[pic] = ctlr->intr;
- intpri[pic] = (int)ctlr->sysdep;
} else {
- printf("The device below will clobber IRQ %d.\n", pic);
+ printf("The device below will clobber IRQ %d (%p).\n", pic, ivect[pic]);
printf("You have two devices at the same IRQ. This won't work.\n");
printf("Reconfigure your hardware and try again.\n");
while (1);
diff --git a/i386/i386at/kd_mouse.c b/i386/i386at/kd_mouse.c
index 05280055..2995587c 100644
--- a/i386/i386at/kd_mouse.c
+++ b/i386/i386at/kd_mouse.c
@@ -84,7 +84,6 @@ WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
static void (*oldvect)(); /* old interrupt vector */
static int oldunit;
-static spl_t oldspl;
extern struct bus_device *cominfo[];
kd_event_queue mouse_queue; /* queue of mouse events */
@@ -226,8 +225,6 @@ kd_mouse_open(
oldvect = ivect[mouse_pic];
ivect[mouse_pic] = kdintr;
- oldspl = intpri[mouse_pic];
- intpri[mouse_pic] = SPL6;
splx(s);
}
@@ -289,7 +286,6 @@ kd_mouse_close(
spl_t s = splhi();
ivect[mouse_pic] = oldvect;
- intpri[mouse_pic] = oldspl;
splx(s);
}
diff --git a/i386/i386at/pic_isa.c b/i386/i386at/pic_isa.c
index 0b36534e..b0415c24 100644
--- a/i386/i386at/pic_isa.c
+++ b/i386/i386at/pic_isa.c
@@ -42,7 +42,7 @@ void (*ivect[NINTR])() = {
/* 04 */ intnull, /* comintr, ... */
/* 05 */ intnull, /* comintr, wtintr, ... */
/* 06 */ intnull, /* fdintr, ... */
- /* 07 */ prtnull, /* qdintr, ... */
+ /* 07 */ intnull, /* qdintr, ... */
/* 08 */ intnull,
/* 09 */ intnull, /* ether */
@@ -54,10 +54,3 @@ void (*ivect[NINTR])() = {
/* 14 */ intnull, /* hdintr, ... */
/* 15 */ intnull, /* ??? */
};
-
-int intpri[NINTR] = {
- /* 00 */ 0, SPL6, 0, 0,
- /* 04 */ 0, 0, 0, 0,
- /* 08 */ 0, 0, 0, 0,
- /* 12 */ 0, SPL1, 0, 0,
-};