[Tinyos Core WG] TOSThreads TEP
Kevin Klues
klueska at gmail.com
Thu May 22 12:30:05 PDT 2008
> Section 3.3: AFAIK, on the atmega128, the stack grows from higher memory
> locations to lower memory locations. Please correct me if I'm wrong.
This is correct. I just confused my wording in the TEP. At one point I say:
the *top* of a thread's stack might exist at either the highest
address (stack grows
down) or lowest address (stack grows up) of the data structure allocated to the
stack
and then later I say:
//Stack grows up (i.e. need to return pointer to bottom of structure)
Which is clearly wrong because if I return a pointer to the bottom of
the structure, then that is a higher address so the stack grows down
as you indicate....
Kevin
More information about the Tinyos-2.0wg
mailing list