From 6a476a42bd6303b75aac197c0c148da13c182913 Mon Sep 17 00:00:00 2001 From: Bill Joy Date: Wed, 15 Apr 1981 09:36:16 -0800 Subject: [PATCH] after interrupt while tape rewinding set timeout to 5 minutes SCCS-vsn: sys/vax/uba/tm.c 4.36 --- usr/src/sys/vax/uba/tm.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/usr/src/sys/vax/uba/tm.c b/usr/src/sys/vax/uba/tm.c index 50d9557c22..0474635af1 100644 --- a/usr/src/sys/vax/uba/tm.c +++ b/usr/src/sys/vax/uba/tm.c @@ -1,4 +1,4 @@ -/* tm.c 4.35 81/04/14 */ +/* tm.c 4.36 81/04/15 */ #include "te.h" #include "ts.h" @@ -563,19 +563,21 @@ tmintr(tm11) bp = dp->b_actf; teunit = TEUNIT(bp->b_dev); addr = (struct device *)tedinfo[teunit]->ui_addr; + sc = &te_softc[teunit]; /* * If last command was a rewind, and tape is still * rewinding, wait for the rewind complete interrupt. */ if (um->um_tab.b_active == SREW) { um->um_tab.b_active = SCOM; - if (addr->tmer&TMER_RWS) + if (addr->tmer&TMER_RWS) { + sc->sc_timo = 5*60; /* 5 minutes */ return; + } } /* * An operation completed... record status */ - sc = &te_softc[teunit]; sc->sc_timo = INF; sc->sc_dsreg = addr->tmcs; sc->sc_erreg = addr->tmer; -- 2.20.1