From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: ffc31,1f1f4c66dde759c9 X-Google-Attributes: gidffc31,public X-Google-Thread: 1164f8,1f1f4c66dde759c9 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1994-03-12 12:55:54 PST Xref: gmd.de comp.sys.dec:14298 vmsnet.pdp-11:142 Newsgroups: comp.sys.dec,vmsnet.pdp-11 Path: gmd.de!newsserver.jvnc.net!yale.edu!yale!gumby!wupost!cs.utexas.edu!uunet!world!mbg From: mbg@world.std.com (Megan) Subject: Re: RT-11 V5 DU Bootstrap Broken Message-ID: Organization: The World Public Access UNIX, Brookline, MA References: <1994Mar9.063929.3093@sarvax.cmhnet.org> Date: Sat, 12 Mar 1994 20:55:54 GMT frog@sarvax.cmhnet.org (Jeff 'Frog' Campbell) writes: >This may be a known problem but it just bit me. >In working around a CMD MSCP controller bootstrap problem I had to modify the >RT-11 V05.05 DU bootstrap code. In examining the block zero boot code I found >a stack pop without a prior push. Look at label 40$ just behind label BIOELK. >If the controller or disk returns an error in response to a READ command the >driver will branch through label 40$ to BINIT. Eventually the READ operation >will RETURN to ?. >The same problem exists as far back as V05.01. I don't have access to V05.06 >kit to see if it's broken as well. It is the same in V5.6, I checked. >The fix is to NOP the TST instruction. Unfortunately, I don't think this will work either. The problem is the code which is the problem is entered both via JSR and by the code above falling-through to it. The first portion of the routine appears to ensure that the MSCP port is running and if not, to do the 4-step init process. Once it is done, it falls through to do the IO. Once in the IO routine, the code checks to see if the adapter has gone south, and if so, dumps the top element of the stack and branches back to the init routine. This is fine if the error occurs only during the 4-step init. The problem *appears* to occur if the port errors during the real IO, the return address which is dumped may be the original return address in the bootstrap code. I *think* the more correct fix is to add code at the beginning of BINIT to save the SP, and at the point where the TST (SP)+ is now, restore the entry SP and branch back to BINIT. I'm going to try this at some point, so if someone wants to beat me to it... :-) Megan Gentry Former RT-11 Developer