You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2020/05/03 20:41:58 UTC

[GitHub] [incubator-nuttx] patacongo edited a comment on pull request #957: Add nx_ variant for fs API

patacongo edited a comment on pull request #957:
URL: https://github.com/apache/incubator-nuttx/pull/957#issuecomment-623178027


   I just submitted PR #962 that implements the first baby step:  A common API to get the stack address.
   
   In order to be compatible with standard TLS, the data must be stores at the lower end of the stack (in standard TLS, the SP is AND-ed with a mask to bet the TLS location.  That gets the allocation base address of the stack.  A push down stack will start at the highest address and be decremented down.  On stack overflow it will clobber the TLS data.
   
   It is possible that the existence of data at the lower address will cause a problem for stack coloration and stack checking logic.
   
   It would be preferable to create the TLS data at the "beginning" (ie., hight address) of the stack using up_stack_frame, but think that cannot be done easily for a variety of reasons.
   


----------------------------------------------------------------
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:
users@infra.apache.org