PDP10, PDP11, VAX: Fix DUP and DMC devices which couldn't be disabled after having been enabled.

This commit is contained in:
Mark Pizzolato 2014-03-19 02:06:10 -07:00
parent 4db30c13dd
commit fe005f7d36
2 changed files with 3 additions and 4 deletions

View file

@ -3714,7 +3714,6 @@ if (!(dptr->flags & DEV_DIS)) {
dmc_process_master_clear(controller);
}
}
sim_activate_after (dptr->units+dptr->numunits-2, DMC_CONNECT_POLL*1000000);/* start poll */
}
return ans;
@ -3767,8 +3766,10 @@ uptr->flags &= ~UNIT_ATT;
for (i=attached=0; i<mp->lines; i++)
if (dptr->units[i].flags & UNIT_ATT)
++attached;
if (!attached)
if (!attached) {
sim_cancel (dptr->units+mp->lines); /* stop poll on last detach */
sim_cancel (dptr->units+(mp->lines+1)); /* stop timer on last detach */
}
free (uptr->filename);
uptr->filename = NULL;
return tmxr_detach_ln (lp);

View file

@ -1237,8 +1237,6 @@ dup_desc.dptr = DUPDPTR; /* Connect appropriate d
dup_desc.uptr = dup_units+dup_desc.lines; /* Identify polling unit */
sim_cancel (dup_units+dup_desc.lines); /* stop poll */
ndev = ((dptr->flags & DEV_DIS)? 0: dup_desc.lines );
if (ndev)
sim_activate_after (dup_units+dup_desc.lines, DUP_CONNECT_POLL*1000000);
return auto_config (dptr->name, ndev); /* auto config */
}