summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/amd64/isa/icu.h4
-rw-r--r--sys/amd64/isa/intr_machdep.c4
-rw-r--r--sys/amd64/isa/nmi.c4
-rw-r--r--sys/i386/isa/icu.h4
-rw-r--r--sys/i386/isa/intr_machdep.c4
-rw-r--r--sys/i386/isa/nmi.c4
6 files changed, 8 insertions, 16 deletions
diff --git a/sys/amd64/isa/icu.h b/sys/amd64/isa/icu.h
index 14e8d14..ed3a879 100644
--- a/sys/amd64/isa/icu.h
+++ b/sys/amd64/isa/icu.h
@@ -60,8 +60,6 @@
void INTREN __P((u_int));
void INTRDIS __P((u_int));
-#define INTRMASK(msk,s) (msk |= (s))
-#define INTRUNMASK(msk,s) (msk &= ~(s))
#else /* APIC_IO */
@@ -72,8 +70,6 @@ extern unsigned imen; /* interrupt mask enable */
#define INTREN(s) (imen &= ~(s), SET_ICUS())
#define INTRDIS(s) (imen |= (s), SET_ICUS())
-#define INTRMASK(msk,s) (msk |= (s))
-#define INTRUNMASK(msk,s) (msk &= ~(s))
#if 0
#ifdef PC98
diff --git a/sys/amd64/isa/intr_machdep.c b/sys/amd64/isa/intr_machdep.c
index 8e0e96c..4620006 100644
--- a/sys/amd64/isa/intr_machdep.c
+++ b/sys/amd64/isa/intr_machdep.c
@@ -635,13 +635,13 @@ update_masks(intrmask_t *maskptr, int irq)
if ((*maskptr & mask) == 0)
return;
/* the irq was included in the classes mask, remove it */
- INTRUNMASK(*maskptr, mask);
+ *maskptr &= ~mask;
} else {
/* a reference to this maskptr was found in this irq's chain */
if ((*maskptr & mask) != 0)
return;
/* put the irq into the classes mask */
- INTRMASK(*maskptr, mask);
+ *maskptr |= mask;
}
/* we need to update all values in the intr_mask[irq] array */
update_intr_masks();
diff --git a/sys/amd64/isa/nmi.c b/sys/amd64/isa/nmi.c
index 8e0e96c..4620006 100644
--- a/sys/amd64/isa/nmi.c
+++ b/sys/amd64/isa/nmi.c
@@ -635,13 +635,13 @@ update_masks(intrmask_t *maskptr, int irq)
if ((*maskptr & mask) == 0)
return;
/* the irq was included in the classes mask, remove it */
- INTRUNMASK(*maskptr, mask);
+ *maskptr &= ~mask;
} else {
/* a reference to this maskptr was found in this irq's chain */
if ((*maskptr & mask) != 0)
return;
/* put the irq into the classes mask */
- INTRMASK(*maskptr, mask);
+ *maskptr |= mask;
}
/* we need to update all values in the intr_mask[irq] array */
update_intr_masks();
diff --git a/sys/i386/isa/icu.h b/sys/i386/isa/icu.h
index 14e8d14..ed3a879 100644
--- a/sys/i386/isa/icu.h
+++ b/sys/i386/isa/icu.h
@@ -60,8 +60,6 @@
void INTREN __P((u_int));
void INTRDIS __P((u_int));
-#define INTRMASK(msk,s) (msk |= (s))
-#define INTRUNMASK(msk,s) (msk &= ~(s))
#else /* APIC_IO */
@@ -72,8 +70,6 @@ extern unsigned imen; /* interrupt mask enable */
#define INTREN(s) (imen &= ~(s), SET_ICUS())
#define INTRDIS(s) (imen |= (s), SET_ICUS())
-#define INTRMASK(msk,s) (msk |= (s))
-#define INTRUNMASK(msk,s) (msk &= ~(s))
#if 0
#ifdef PC98
diff --git a/sys/i386/isa/intr_machdep.c b/sys/i386/isa/intr_machdep.c
index 8e0e96c..4620006 100644
--- a/sys/i386/isa/intr_machdep.c
+++ b/sys/i386/isa/intr_machdep.c
@@ -635,13 +635,13 @@ update_masks(intrmask_t *maskptr, int irq)
if ((*maskptr & mask) == 0)
return;
/* the irq was included in the classes mask, remove it */
- INTRUNMASK(*maskptr, mask);
+ *maskptr &= ~mask;
} else {
/* a reference to this maskptr was found in this irq's chain */
if ((*maskptr & mask) != 0)
return;
/* put the irq into the classes mask */
- INTRMASK(*maskptr, mask);
+ *maskptr |= mask;
}
/* we need to update all values in the intr_mask[irq] array */
update_intr_masks();
diff --git a/sys/i386/isa/nmi.c b/sys/i386/isa/nmi.c
index 8e0e96c..4620006 100644
--- a/sys/i386/isa/nmi.c
+++ b/sys/i386/isa/nmi.c
@@ -635,13 +635,13 @@ update_masks(intrmask_t *maskptr, int irq)
if ((*maskptr & mask) == 0)
return;
/* the irq was included in the classes mask, remove it */
- INTRUNMASK(*maskptr, mask);
+ *maskptr &= ~mask;
} else {
/* a reference to this maskptr was found in this irq's chain */
if ((*maskptr & mask) != 0)
return;
/* put the irq into the classes mask */
- INTRMASK(*maskptr, mask);
+ *maskptr |= mask;
}
/* we need to update all values in the intr_mask[irq] array */
update_intr_masks();
OpenPOWER on IntegriCloud