Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* RT-11 V5 DU Bootstrap Broken
@ 1994-03-09  6:39 Jeff 'Frog' Campbell
  1994-03-12 20:55 ` Megan
  0 siblings, 1 reply; 2+ messages in thread
From: Jeff 'Frog' Campbell @ 1994-03-09  6:39 UTC (permalink / raw)


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.

The fix is to NOP the TST instruction.

-- 
***  Jeff Campbell  N8WXS  '76 R75/6  70010,160  frog@sarvax.cmhnet.org  ***


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: RT-11 V5 DU Bootstrap Broken
  1994-03-09  6:39 RT-11 V5 DU Bootstrap Broken Jeff 'Frog' Campbell
@ 1994-03-12 20:55 ` Megan
  0 siblings, 0 replies; 2+ messages in thread
From: Megan @ 1994-03-12 20:55 UTC (permalink / raw)


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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1994-03-12 20:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-03-09  6:39 RT-11 V5 DU Bootstrap Broken Jeff 'Frog' Campbell
1994-03-12 20:55 ` Megan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox