diff options
author | briggs <briggs@cvs.openbsd.org> | 1996-02-02 23:14:57 +0000 |
---|---|---|
committer | briggs <briggs@cvs.openbsd.org> | 1996-02-02 23:14:57 +0000 |
commit | 7b61f748d4d0b375fc8f4c1b7e82c4416cdf1ef8 (patch) | |
tree | beb9313ca51636a0a625cd141cf6875c70fdc943 /sys/arch/mac68k | |
parent | 72676c2c3660f875c79a7e1c6369ee5e6f01bb15 (diff) |
Force the talley counters to be read when we get the interrupt. GCC
was nicely optimizing the reads out for us. Kudos for this one go to
Steven R. Weiss <srw@hvcn.org>. (from netbsd)
Diffstat (limited to 'sys/arch/mac68k')
-rw-r--r-- | sys/arch/mac68k/dev/if_ae.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/arch/mac68k/dev/if_ae.c b/sys/arch/mac68k/dev/if_ae.c index b92a1fcb825..0b4281c259a 100644 --- a/sys/arch/mac68k/dev/if_ae.c +++ b/sys/arch/mac68k/dev/if_ae.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_ae.c,v 1.39 1996/01/13 14:03:38 briggs Exp $ */ +/* $NetBSD: if_ae.c,v 1.40 1996/02/02 15:30:56 briggs Exp $ */ /* * Device driver for National Semiconductor DS8390/WD83C690 based ethernet @@ -1006,9 +1006,10 @@ aeintr(arg) * otherwise - resulting in an infinite loop. */ if (isr & ED_ISR_CNT) { - (void) NIC_GET(sc, ED_P0_CNTR0); - (void) NIC_GET(sc, ED_P0_CNTR1); - (void) NIC_GET(sc, ED_P0_CNTR2); + static unsigned char dummy; + dummy = NIC_GET(sc, ED_P0_CNTR0); + dummy = NIC_GET(sc, ED_P0_CNTR1); + dummy = NIC_GET(sc, ED_P0_CNTR2); } isr = NIC_GET(sc, ED_P0_ISR); if (!isr) |