diff options
| author | Matthew Seaman <matthew@FreeBSD.org> | 2017-01-03 14:00:47 +0000 |
|---|---|---|
| committer | Matthew Seaman <matthew@FreeBSD.org> | 2017-01-03 14:00:47 +0000 |
| commit | 7c084f620e6dcec68140cd4df90f64870cae813b (patch) | |
| tree | 0752b4ea3e6f7dda7f1a2ab4235d6bffb9455613 /emulators/simh/files/patch-PDP11_pdp11__xq.c | |
| parent | Update to 7.1.0. Changes include: (diff) | |
Fixes to allow building on 12-CURRENT
- fix build failures in i386 and amd64 due to compiler changes
- fix numerous compilation warnings and logical errors that may trap
in the future
- convert all distribution files from DOS format to ease future changes
- convert legacy patch file to new naming convention
PR: 214990
Submitted by: bob@eager.cx (maintainer)
Diffstat (limited to 'emulators/simh/files/patch-PDP11_pdp11__xq.c')
| -rw-r--r-- | emulators/simh/files/patch-PDP11_pdp11__xq.c | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/emulators/simh/files/patch-PDP11_pdp11__xq.c b/emulators/simh/files/patch-PDP11_pdp11__xq.c new file mode 100644 index 000000000000..ec54cf9e99d9 --- /dev/null +++ b/emulators/simh/files/patch-PDP11_pdp11__xq.c @@ -0,0 +1,39 @@ +--- PDP11/pdp11_xq.c.orig 2016-12-01 22:43:42 UTC ++++ PDP11/pdp11_xq.c +@@ -1187,7 +1187,7 @@ t_stat xq_process_setup(CTLR* xq) + + xq->var->setup.multicast = (0 != (len & XQ_SETUP_MC)); + xq->var->setup.promiscuous = (0 != (len & XQ_SETUP_PM)); +- if (led = (len & XQ_SETUP_LD) >> 2) { ++ if ((led = (len & XQ_SETUP_LD) >> 2)) { + switch (led) { + case 1: xq->var->setup.l1 = 0; break; + case 2: xq->var->setup.l2 = 0; break; +@@ -2073,6 +2073,10 @@ t_stat xq_process_bootrom (CTLR* xq) + /* set to next bdl (implicit chain) */ + xq->var->rbdl_ba += 12; + break; ++ ++ case XQ_T_DELQA: ++ case XQ_T_DELQA_PLUS: ++ break; + } /* switch */ + + /* --------------------------- Done, finish up -----------------------------*/ +@@ -2531,7 +2535,7 @@ t_stat xq_tmrsvc(UNIT* uptr) + + /* has sanity timer expired? if so, reboot */ + if (xq->var->sanity.enabled) +- if (--xq->var->sanity.timer <= 0) ++ if (--xq->var->sanity.timer <= 0) { + if (xq->var->mode != XQ_T_DELQA_PLUS) + return xq_boot_host(xq); + else { /* DELQA-T Host Inactivity Timer expiration means switch out of DELQA-T mode */ +@@ -2540,6 +2544,7 @@ t_stat xq_tmrsvc(UNIT* uptr) + xq->var->iba = xq->var->srr = 0; + xq->var->var = XQ_VEC_MS | XQ_VEC_OS; + } ++ } + + /* has system id timer expired? if so, do system id */ + if (--xq->var->idtmr <= 0) { |
