summaryrefslogtreecommitdiff
path: root/cpukit/include/rtems/score/tls.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-03-23 15:54:59 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-03-23 15:57:50 +0100
commit24c21795ea12380b9594d37f34a30432b56a73c6 (patch)
treed990a54e08db6cde6c4813a4441e7252061939eb /cpukit/include/rtems/score/tls.h
parentd05a900a5b58c17a896dc449e6ed7bca5430ff01 (diff)
score: Fix size of TLS_Thread_control_block
On most architectures, the size of the thread-local storage TCB must be 8 bytes. Fix the definition for 64-bit targets.
Diffstat (limited to 'cpukit/include/rtems/score/tls.h')
-rw-r--r--cpukit/include/rtems/score/tls.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/cpukit/include/rtems/score/tls.h b/cpukit/include/rtems/score/tls.h
index 1b9dae11b1..bfe6ff3a6b 100644
--- a/cpukit/include/rtems/score/tls.h
+++ b/cpukit/include/rtems/score/tls.h
@@ -73,10 +73,12 @@ typedef struct {
typedef struct TLS_Thread_control_block {
#ifdef __i386__
struct TLS_Thread_control_block *tcb;
-#else
+#else /* !__i386__ */
TLS_Dynamic_thread_vector *dtv;
+#if CPU_SIZEOF_POINTER == 4
uintptr_t reserved;
#endif
+#endif /* __i386__ */
} TLS_Thread_control_block;
typedef struct {