From: mbg@world.std.com (Megan)
Subject: Re: RT-11 V5 DU Bootstrap Broken
Date: Sat, 12 Mar 1994 20:55:54 GMT [thread overview]
Message-ID: <CMKKt6.KH6@world.std.com> (raw)
In-Reply-To: 1994Mar9.063929.3093@sarvax.cmhnet.org
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
prev parent reply other threads:[~1994-03-12 20:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-03-09 6:39 RT-11 V5 DU Bootstrap Broken Jeff 'Frog' Campbell
1994-03-12 20:55 ` Megan [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox