PDP11, VAXen: Properly clear I/O space read/write dispatches on deregister
as reported in #1029
This commit is contained in:
parent
fc5bda9070
commit
b90b1eaf6f
1 changed files with 4 additions and 1 deletions
|
@ -425,8 +425,11 @@ for (i = 0; i < (int32) dibp->lnt; i = i + 2) { /* create entries */
|
||||||
"Device %s address conflict with %s at 0%o\n",
|
"Device %s address conflict with %s at 0%o\n",
|
||||||
sim_dname (dptr), cdname, (int)dibp->ba);
|
sim_dname (dptr), cdname, (int)dibp->ba);
|
||||||
}
|
}
|
||||||
if ((dibp->rd == NULL) && (dibp->wr == NULL) && (dibp->vnum == 0))
|
if ((dibp->rd == NULL) && (dibp->wr == NULL) && (dibp->vnum == 0)) {
|
||||||
iodibp[idx] = NULL; /* deregister DIB */
|
iodibp[idx] = NULL; /* deregister DIB */
|
||||||
|
iodispR[idx] = NULL; /* and related dispatches */
|
||||||
|
iodispW[idx] = NULL;
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
if (dibp->rd)
|
if (dibp->rd)
|
||||||
iodispR[idx] = dibp->rd; /* set rd dispatch */
|
iodispR[idx] = dibp->rd; /* set rd dispatch */
|
||||||
|
|
Loading…
Add table
Reference in a new issue