[okl4-developer] Sigma0 stack initialization

Geoffrey Lee glee at ok-labs.com
Sat Jan 26 03:28:23 EST 2008


On Fri, Jan 25, 2008 at 07:20:52AM -0800, Subcommander l0r3zz wrote:
> I'm actually using the current release but I was reading some older
> ERTOS/NICTA papers and took a look at the old package.  Whether its still
> used or not, can you explain the rational behind the code?

The code is probably wrong.  By the way, I should point out that from
a quick look that variable is not used anywhere so it is most likely
stale code that got missed.


	-gl

> 
> On Jan 25, 2008 1:42 AM, Geoffrey Lee <glee at ok-labs.com> wrote:
> 
> > On Thu, Jan 24, 2008 at 05:01:56PM -0800, Subcommander l0r3zz wrote:
> >
> >
> > Hi
> >
> > Sigma0 is no longer used in OKL4.
> >
> > Which release are you using?
> >
> >        -gl
> >
> > > While studying the Sigma0 code, there is something I don't quite
> > > understand...
> > >
> > >
> > > uintptr_t _stack[128];
> > > void * _stack_top = (void*) &_stack[255];
> > >
> > >
> > >
> > > OK an array of 128 unsigned int pointer;
> > >
> > > but then why are you taking the address of _stack[255] and not  &
> > > _stack[127]  ?
> >
> > > _______________________________________________
> > > Developer mailing list
> > > Developer at okl4.org
> > > https://lists.okl4.org/mailman/listinfo/developer
> >
> >
> > --
> > Lalalalalalalalala...
> >
> >

-- 
Lalalalalalalalala...




More information about the Developer mailing list