From 4299ee96dbc7722d338953d9a38c30c13bbe4617 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Wed, 14 May 2014 00:16:14 -0700 Subject: [PATCH] PDP10, PDP11, VAX: Avoid returning "Line Unit" test failed after DMC/DMR master clear if a line is not attached. Let the attached state (if it needs to be determined) be reflected by sensing modem status bits. --- PDP11/pdp11_dmc.c | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/PDP11/pdp11_dmc.c b/PDP11/pdp11_dmc.c index 56f6a006..2f91d6ec 100644 --- a/PDP11/pdp11_dmc.c +++ b/PDP11/pdp11_dmc.c @@ -2309,18 +2309,12 @@ while ((control = controller->control_out)) { controller->control_out = NULL; dmc_setreg(controller, 0, 0, DBG_RGC); if (controller->dev_type == DMR) { - if (dmc_is_attached(controller->unit)) { - /* Indicates microdiagnostics complete */ - if (((*controller->csrs->sel0 & DMC_SEL0_M_UDIAG) != 0) ^ - (dmc_microdiag[controller->index])) - dmc_setreg(controller, 2, 0x8000, DBG_RGC);/* Microdiagnostics Complete */ - else - dmc_setreg(controller, 2, 0x4000, DBG_RGC); /* Microdiagnostics Inhibited */ - } - else { - /* Indicate M8203 (Line Unit) test failed */ - dmc_setreg(controller, 2, 0x0200, DBG_RGC); - } + /* Indicates microdiagnostics complete */ + if (((*controller->csrs->sel0 & DMC_SEL0_M_UDIAG) != 0) ^ + (dmc_microdiag[controller->index])) + dmc_setreg(controller, 2, 0x8000, DBG_RGC);/* Microdiagnostics Complete */ + else + dmc_setreg(controller, 2, 0x4000, DBG_RGC); /* Microdiagnostics Inhibited */ } else { /* preserve contents of BSEL3 if DMC-11 */