From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: fdd80,984fa3368c4b0956 X-Google-Thread: 1164f8,984fa3368c4b0956 X-Google-Attributes: gidfdd80,gid1164f8,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.glorb.com!news.primus.ca!news.primus.ca!nntp-post.primus.ca!53ab2750!not-for-mail Newsgroups: alt.sys.pdp11,comp.sys.dec From: John Santos Subject: Re: 11/40 misbehaviour In-Reply-To: Message-ID: <1040804230752.7326D-100000@Ives.egh.com> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Date: Wed, 4 Aug 2004 23:26:35 -0400 NNTP-Posting-Host: 209.192.204.112 X-Complaints-To: news@primus.ca X-Trace: nntp-post.primus.ca 1091675875 209.192.204.112 (Wed, 04 Aug 2004 23:17:55 EDT) NNTP-Posting-Date: Wed, 04 Aug 2004 23:17:55 EDT Organization: Primus Canada Xref: g2news1.google.com alt.sys.pdp11:269 comp.sys.dec:423 On 4 Aug 2004, Rich Alderson wrote: > I'm working on an 11/40 running RSX which is somewhat flaky: It keeps getting > T04 halts, which the manual tells me indicate that the trap bit (4) of the PSW > is getting set, but that RSX has no handler for this. It happens fairly often, > but not predictably. > > I don't have a set of 11/40 diagnostics, only 11/34--some will run, most will > not. Where can I find RX01 disk images with 11/40 diags? Or does anyone have > a feel for what might be causing the T04 halts? Are you sure it is a PSW bit 4 (T bit, indicates trace trap), and not a trap through the vector at 4? Debuggers use the trace trap in conjunction with the RTT instruction to single-step. They set the "T" bit in the saved PSW, then RTT. One instruction executes and then traps again. The debugger has to set up the trap handler for the trace trap (at the vector at 14) and proceed accordingly. Getting spurious trace-traps is very weird. Either you have bad memory in the kernel stack area (which is setting bit 4 in the saved PSW from various random interrupts), or the PS hardware itself is flakey and is reading or writing the bit 4 incorrectly. Trap through 4 could be anything... T4 is Timeout and other errors, according to my PDP 11/40 Processor Handbook. A Unibus timeout could be caused by incorrect device configuration, but I think the device setup code at boot time should try to protect you against this. (It does on RSTS, by disabling non-existent devices, but I'm not nearly as familiar with RSX.) Memory could be going out to lunch, and failing to respond to reads or writes. Or the bus cable(s), jumper(s) or terminators could be bad, and randomly changing an address bit causing a memory or device address to be wrong. Have you tried all the standard things, i.e. reseating boards, checking PS voltages, etc.? If that doesn't help, try paring down the system to the minimal working configuration (CPU, console terminal, enough memory to run, and the system disk) and then add things back one at a time until the problem recurs. I haven't seen PDP-11/40 diags in years. We used to have a tape (9-track, 800 bpi) of them, but it is long gone. HTH. -- John Santos Evans Griffiths & Hart, Inc. 781-861-0670 ext 539