RTEMS stack + TSIM-LEON2 weird behaviour

Joel Sherrill joel.sherrill at OARcorp.com
Tue May 6 14:40:21 UTC 2008


Aitor.Viana.Sanchez at esa.int wrote:
>
>
> > 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.
>
It is certainly simple.  We need confirmation from Jiri or Daniel.
> Regards,
>
> Aitor
>
>


-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherrill at OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
   Support Available             (256) 722-9985





More information about the users mailing list