RTEMS stack + TSIM-LEON2 weird behaviour
    Aitor.Viana.Sanchez at esa.int 
    Aitor.Viana.Sanchez at esa.int
       
    Tue May  6 14:11:02 UTC 2008
    
    
  
> The initial value of %sp seens to be 0 on the sparc configurations I 
have.
> So the sub instruction you highlighted above would set the %sp to
> the area below the work space.
> This code hasn't changed in a LONG time and makes assumptions about
> the execution environment which I cannot personally guarantee.  Jiri
> would be able to do so.
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)
> My first thought this morning is that this may have been a valid 
assumption
> at one time (initial %sp is 0) but with more variations and starting
> environments,
> it may not be valid anymore.  I would guess that the "sub" statement 
would
> be better changed to a "mov %l3, %sp" and ignore the inherited %sp.
I think this a good solution.
Regards,
Aitor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20080506/c96a4c65/attachment-0001.html>
    
    
More information about the users
mailing list