diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-01-28 12:10:08 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-02-04 10:06:35 +0100 |
commit | 022851aba54d32831feaff13deb3d9943e130eee (patch) | |
tree | c1d6a8404dae393bd147790f6a9cf09c2f327b5a /cpukit/score/include/rtems/score/context.h | |
parent | bsps: Thread-local storage (TLS) for linkcmds (diff) | |
download | rtems-022851aba54d32831feaff13deb3d9943e130eee.tar.bz2 |
Add thread-local storage (TLS) support
Tested and implemented on ARM, m68k, PowerPC and SPARC. Other
architectures need more work.
Diffstat (limited to 'cpukit/score/include/rtems/score/context.h')
-rw-r--r-- | cpukit/score/include/rtems/score/context.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cpukit/score/include/rtems/score/context.h b/cpukit/score/include/rtems/score/context.h index 02bcf156dd..ffffe9bb51 100644 --- a/cpukit/score/include/rtems/score/context.h +++ b/cpukit/score/include/rtems/score/context.h @@ -60,9 +60,12 @@ extern "C" { * @param[in] _entry is this thread's entry point * @param[in] _is_fp is set to true if this thread has floating point * enabled + * @param[in] _tls_area The thread-local storage (TLS) area begin. */ -#define _Context_Initialize(_the_context, _stack, _size, _isr, _entry, _is_fp) \ - _CPU_Context_Initialize( _the_context, _stack, _size, _isr, _entry, _is_fp ) +#define _Context_Initialize( _the_context, _stack, _size, _isr, _entry, \ + _is_fp, _tls_area ) \ + _CPU_Context_Initialize( _the_context, _stack, _size, _isr, _entry, \ + _is_fp, _tls_area ) /** * This macro is invoked from _Thread_Handler to do whatever CPU |