forked from Imagelibrary/rtems
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.
This commit is contained in:
@@ -73,10 +73,12 @@ typedef struct {
|
|||||||
typedef struct TLS_Thread_control_block {
|
typedef struct TLS_Thread_control_block {
|
||||||
#ifdef __i386__
|
#ifdef __i386__
|
||||||
struct TLS_Thread_control_block *tcb;
|
struct TLS_Thread_control_block *tcb;
|
||||||
#else
|
#else /* !__i386__ */
|
||||||
TLS_Dynamic_thread_vector *dtv;
|
TLS_Dynamic_thread_vector *dtv;
|
||||||
|
#if CPU_SIZEOF_POINTER == 4
|
||||||
uintptr_t reserved;
|
uintptr_t reserved;
|
||||||
#endif
|
#endif
|
||||||
|
#endif /* __i386__ */
|
||||||
} TLS_Thread_control_block;
|
} TLS_Thread_control_block;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user