<br><tt><font size=2><br>
> The initial value of %sp seens to be 0 on the sparc configurations
I have.<br>
> So the sub instruction you highlighted above would set the %sp to<br>
> the area below the work space.<br>
</font></tt>
<br><tt><font size=2>> This code hasn't changed in a LONG time and makes
assumptions about<br>
> the execution environment which I cannot personally guarantee.  Jiri<br>
> would be able to do so.</font></tt>
<br>
<br><tt><font size=2>i am pretty sure (Jiri will correct me if I am wrong)
that TSIM initializes %sp and %fp to allow direct RAM execution in case
the SW does not have a bootstrap SW behind (e.g. mkprom)<br>
</font></tt>
<br><tt><font size=2>> My first thought this morning is that this may
have been a valid assumption<br>
> at one time (initial %sp is 0) but with more variations and starting<br>
> environments,<br>
> it may not be valid anymore.  I would guess that the "sub"
statement would<br>
> be better changed to a "mov %l3, %sp" and ignore the inherited
%sp.</font></tt>
<br>
<br><tt><font size=2>I think this a good solution.</font></tt>
<br>
<br><tt><font size=2>Regards,</font></tt>
<br>
<br><tt><font size=2>Aitor</font></tt>
<br><tt><font size=2><br>
<br>
</font></tt>