summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/no_cpu/include/rtems/score/cpuimpl.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2023-09-15 08:21:21 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2023-09-15 10:44:08 +0200
commit49a88a73a871d23bb7129a5048e4b5331527e84a (patch)
tree409d735df8987da4bf306c5808cfc44454105082 /cpukit/score/cpu/no_cpu/include/rtems/score/cpuimpl.h
parentbuild: Add target to build scripts (diff)
downloadrtems-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 '')
-rw-r--r--cpukit/score/cpu/no_cpu/include/rtems/score/cpuimpl.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/cpukit/score/cpu/no_cpu/include/rtems/score/cpuimpl.h b/cpukit/score/cpu/no_cpu/include/rtems/score/cpuimpl.h
index 61afcdd014..61f1ab7ba5 100644
--- a/cpukit/score/cpu/no_cpu/include/rtems/score/cpuimpl.h
+++ b/cpukit/score/cpu/no_cpu/include/rtems/score/cpuimpl.h
@@ -201,6 +201,22 @@ static inline void _CPU_Use_thread_local_storage(
(void) context;
}
+/**
+ * @brief Gets the thread pointer of the context.
+ *
+ * The thread pointer is used to get the address of thread-local storage
+ * objects associated with a thread.
+ *
+ * @param context is the processor context containing the thread pointer.
+ */
+static inline void *_CPU_Get_TLS_thread_pointer(
+ const Context_Control *context
+)
+{
+ (void) context;
+ return NULL;
+}
+
#ifdef __cplusplus
}
#endif