diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2023-09-15 08:21:21 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2023-09-15 10:44:08 +0200 |
commit | 49a88a73a871d23bb7129a5048e4b5331527e84a (patch) | |
tree | 409d735df8987da4bf306c5808cfc44454105082 /cpukit/score/cpu/m68k/include | |
parent | build: Add target to build scripts (diff) | |
download | rtems-49a88a73a871d23bb7129a5048e4b5331527e84a.tar.bz2 |
score: Add _CPU_Get_TLS_thread_pointer()
Add _CPU_Get_TLS_thread_pointer() to get the thread pointer which is
used to get the address of thread-local storage objects associated with
a thread.
Update #4920.
Diffstat (limited to 'cpukit/score/cpu/m68k/include')
-rw-r--r-- | cpukit/score/cpu/m68k/include/rtems/score/cpuimpl.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cpukit/score/cpu/m68k/include/rtems/score/cpuimpl.h b/cpukit/score/cpu/m68k/include/rtems/score/cpuimpl.h index 4bee157215..521e9fc4c2 100644 --- a/cpukit/score/cpu/m68k/include/rtems/score/cpuimpl.h +++ b/cpukit/score/cpu/m68k/include/rtems/score/cpuimpl.h @@ -95,6 +95,13 @@ static inline void _CPU_Use_thread_local_storage( (void) context; } +static inline void *_CPU_Get_TLS_thread_pointer( + const Context_Control *context +) +{ + return (void *) context->thread_pointer; +} + #ifdef __cplusplus } #endif |