diff options
Diffstat (limited to 'sysdeps/riscv')
-rw-r--r-- | sysdeps/riscv/nptl/tls.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/sysdeps/riscv/nptl/tls.h b/sysdeps/riscv/nptl/tls.h index a966d440c5..1f78cacdec 100644 --- a/sysdeps/riscv/nptl/tls.h +++ b/sysdeps/riscv/nptl/tls.h @@ -50,20 +50,15 @@ typedef struct pointer, we don't need this. */ # define TLS_INIT_TCB_SIZE 0 -/* Alignment requirements for the initial TCB. */ -# define TLS_INIT_TCB_ALIGN __alignof__ (struct pthread) - /* This is the size of the TCB. Because our TCB is before the thread pointer, we don't need this. */ # define TLS_TCB_SIZE 0 -/* Alignment requirements for the TCB. */ -# define TLS_TCB_ALIGN __alignof__ (struct pthread) - /* This is the size we need before TCB - actually, it includes the TCB. */ # define TLS_PRE_TCB_SIZE \ (sizeof (struct pthread) \ - + ((sizeof (tcbhead_t) + TLS_TCB_ALIGN - 1) & ~(TLS_TCB_ALIGN - 1))) + + ((sizeof (tcbhead_t) + __alignof (struct pthread) - 1) \ + & ~(__alignof (struct pthread) - 1))) /* The thread pointer tp points to the end of the TCB. The pthread_descr structure is immediately in front of the TCB. */ |