nuttx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [incubator-nuttx] patacongo opened a new pull request #977: Implements TLS for unaligned stacks.
Date Tue, 05 May 2020 15:59:53 GMT

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


   ## Summary
   
   TLS has been NuttX for a long time, but has only been truly usable KERNEL build mode. 
That was due primarily large stack alignement that was required for TLS to work.
   
   This PR implements TLS using an unaligned stack.  This is less efficient since it does
involve a system call to get the base stack address.  However, it can no be generalized to
all build modes.
   
   This is an initial step in implementing an errno that supports read/write access in all
build modes.
   
   ## Impact
   
   Since TLS is not currently used in any configuration, there should be no impact of this
change.
   
   ## Testing
   
   The change was verified using the sim:ostest configuration.  The configuration was modified
to enable TLS.  This enables the TLS test at apps/testing/ostest/tls.c
   
   


----------------------------------------------------------------
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



Mime
View raw message