From 0b81a8d550141998085cb9d60ffcfe8e94ba3cf3 Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Fri, 25 Sep 1992 00:00:00 +0000 Subject: [PATCH] Plan 9 from Bell Labs 1992-09-25 --- pc/devether.c | 2 +- pc/ether509.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pc/devether.c b/pc/devether.c index 8e839f2bdb32ca113ca935eeb9dcffb7feb0d148..7beef51a0e4cc1bb30894d5dcf7a153c28790af3 100644 --- a/pc/devether.c +++ b/pc/devether.c @@ -370,7 +370,7 @@ isinput(void *arg) { EtherCtlr *cp = arg; - return cp->lbq.first || cp->rb[cp->ri].owner == Host; + return cp->lbq.first || cp->rb[cp->rh].owner == Host; } static void diff --git a/pc/ether509.c b/pc/ether509.c index ebb71f1c96652fe6673ec1ba347d7ffeee730366..0757b17c8ea16be8aba8e33eb5bfcbe3054b5710 100644 --- a/pc/ether509.c +++ b/pc/ether509.c @@ -417,6 +417,7 @@ interrupt(EtherCtlr *cp) if(txstatus & (TxJabber|TxUnderrun)) COMMAND(hw, TxReset, 0); COMMAND(hw, TxEnable, 0); + cp->oerrs++; } if(status & (TxAvailable|TxComplete)){