1
0
mirror of https://github.com/PDP-10/klh10.git synced 2026-02-06 08:25:37 +00:00

dvtm03.patch Avoid incorrect "offline" message when mounting tape on TOPS-20 the first time.

from http://home.comcast.net/~mmcm/klh10/dvtm03.patch
This commit is contained in:
Olaf Seibert
2015-07-28 23:46:27 +02:00
parent bb543c2994
commit 0f3d110a2d

View File

@@ -1664,10 +1664,13 @@ tm_cmddon(register struct tmdev *tm)
tm_ssta(tm); /* update all status */
}
if (1) {
/* Horrible crock to give feedback on mount/dismount requests */
/* Horrible crock to give feedback on mount/dismount requests.
** Use the dp status, rather than the register, in case the OS
** happens to have another slave selected, as TOPS-20 will initially.
*/
fprintf(DVDBF(tm), "[%s: Tape %s]\r\n",
tm->tm_dv.dv_name,
(TMREG(tm, RHR_STS) & TM_SMOL) ? "online" : "offline");
(tm->tm_sdptm->dptm_mol) ? "online" : "offline");
}
TMREG(tm, RHR_STS) |= TM_SSSC; /* Set SSC - slave changed state */
tm_attn(tm);