summaryrefslogtreecommitdiff
path: root/sys/arch/sparc
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2002-07-17 02:46:53 +0000
committerJason Wright <jason@cvs.openbsd.org>2002-07-17 02:46:53 +0000
commit4e315604ffeaa59ebbdb50b35766325b7f42898c (patch)
treeae48eb1d0a7fb562dea3c35711600ba663ed68c8 /sys/arch/sparc
parentf849c74e9e4aee148390f507e76eaa87062f7080 (diff)
DTIMEXP is not a fatal error, deal with it.
Diffstat (limited to 'sys/arch/sparc')
-rw-r--r--sys/arch/sparc/dev/hme.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/sys/arch/sparc/dev/hme.c b/sys/arch/sparc/dev/hme.c
index 98cb35e6a27..83950a474b1 100644
--- a/sys/arch/sparc/dev/hme.c
+++ b/sys/arch/sparc/dev/hme.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hme.c,v 1.37 2002/06/07 23:34:54 jason Exp $ */
+/* $OpenBSD: hme.c,v 1.38 2002/07/17 02:46:52 jason Exp $ */
/*
* Copyright (c) 1998 Jason L. Wright (jason@thought.net)
@@ -767,10 +767,16 @@ hme_eint(sc, why)
struct hme_softc *sc;
u_int32_t why;
{
- if (why & GR_STAT_NORXD)
+ if (why & GR_STAT_NORXD) {
sc->sc_arpcom.ac_if.if_ierrors++;
+ why &= ~GR_STAT_NORXD;
+ }
+ if (why & GR_STAT_DTIMEXP) {
+ sc->sc_arpcom.ac_if.if_oerrors++;
+ why &= ~GR_STAT_DTIMEXP;
+ }
- if (why & (GR_STAT_ALL_ERRORS & (~GR_STAT_NORXD))) {
+ if (why & GR_STAT_ALL_ERRORS) {
printf("%s: stat=%b, resetting.\n", sc->sc_dev.dv_xname,
why, GR_STAT_BITS);
hmereset(sc);