summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_nfe.c
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2006-01-14 04:33:36 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2006-01-14 04:33:36 +0000
commit2689e7d409bcee4cba8d78dd9c2897e6bf472e75 (patch)
tree06955929751e56ae180fe76299968cc2b4042d07 /sys/dev/pci/if_nfe.c
parent436e5aabc583511c3ffed024621103075c04a64d (diff)
Make sure interrupt is properly ack'd.
From damien@
Diffstat (limited to 'sys/dev/pci/if_nfe.c')
-rw-r--r--sys/dev/pci/if_nfe.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/pci/if_nfe.c b/sys/dev/pci/if_nfe.c
index ae4a851ae5c..eecc0a78035 100644
--- a/sys/dev/pci/if_nfe.c
+++ b/sys/dev/pci/if_nfe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_nfe.c,v 1.4 2005/12/17 11:12:54 jsg Exp $ */
+/* $OpenBSD: if_nfe.c,v 1.5 2006/01/14 04:33:35 jsg Exp $ */
/*
* Copyright (c) 2005 Jonathan Gray <jsg@openbsd.org>
*
@@ -351,7 +351,8 @@ nfe_intr(void *arg)
/* disable interrupts */
NFE_WRITE(sc, NFE_IRQ_MASK, 0);
- r = NFE_READ(sc, NFE_IRQ_STATUS) & 0x1ff;
+ r = NFE_READ(sc, NFE_IRQ_STATUS);
+ NFE_WRITE(sc, NFE_IRQ_STATUS, r);
if (r == 0) {
NFE_WRITE(sc, NFE_IRQ_MASK, NFE_IRQ_WANTED | NFE_IRQ_TIMER);