xiaoxiang781216 opened a new pull request #3471:
URL: https://github.com/apache/incubator-nuttx/pull/3471


   ## Summary
   All supported arch uses a push-down stack:
   The stack grows toward lower addresses in memory. The stack pointer
   register points to the lowest, valid working address (the "top" of
   the stack). Items on the stack are referenced as positive(include zero)
   word offsets from sp.
   Which means that for stack in the [begin, begin + size):
   1.The initial SP point to begin + size
   2.push equals sub and then store
   3.pop equals load and then add
   
   ## Impact
   ps report the correct stack range.
   
   ## Testing
   ostest
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to