commit | 388725870fbaa82328d24779042551b19651b329 | [log] [tgz] |
---|---|---|
author | Daniel Leung <daniel.leung@intel.com> | Tue Sep 29 12:16:01 2020 -0700 |
committer | Andrew Boie <andrewboie@gmail.com> | Sat Oct 24 10:52:00 2020 -0700 |
tree | 01ad4d224739c4946e7af77b8f928d38e621f7ea | |
parent | 778c996831e7f7a0063f115853986d8810ed9aed [diff] |
arm: cortex_m: add support for thread local storage Adds the necessary bits to initialize TLS in the stack area and sets up CPU registers during context switch. Note that since Cortex-M does not have the thread ID or process ID register needed to store TLS pointer at runtime for toolchain to access thread data, a global variable is used instead. Signed-off-by: Daniel Leung <daniel.leung@intel.com>