summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/nmi.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1999-12-26 12:43:47 +0000
committerbde <bde@FreeBSD.org>1999-12-26 12:43:47 +0000
commit2f7307b35f8aaa38b119fa8cf667cdf4d3cc5ce5 (patch)
treeb4c5aa159c2c085f6ae491cd305a2a80b3de25e0 /sys/i386/isa/nmi.c
parent6435e2560e3103a14a4e67820a4c1f45a5b99be1 (diff)
downloadFreeBSD-src-2f7307b35f8aaa38b119fa8cf667cdf4d3cc5ce5.zip
FreeBSD-src-2f7307b35f8aaa38b119fa8cf667cdf4d3cc5ce5.tar.gz
Replaced the INTRMASK and INTRUNMASK macros by "|" and "&~" operations.
Some interface botches went away, leaving the macros unused outside of the implementation of interrupt masking, and it was silly for the implementation to use the macros in only one place each.
Diffstat (limited to 'sys/i386/isa/nmi.c')
-rw-r--r--sys/i386/isa/nmi.c4
1 files changed, 2 insertions, 2 deletions
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