diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2024-03-20 09:44:40 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2024-03-20 11:07:24 +0100 |
commit | 6bb2d37af6772cada51b0871d3184f7783779364 (patch) | |
tree | bcfd87bbe6713bb77d7fb7784f293c9fac235c38 /libpthread/nptl/sysdeps/riscv32/tcb-offsets.sym | |
parent | cd5b45d5f755b07d7205ed471ed55422e450ba75 (diff) |
riscv32: sync with riscv64
Diffstat (limited to 'libpthread/nptl/sysdeps/riscv32/tcb-offsets.sym')
-rw-r--r-- | libpthread/nptl/sysdeps/riscv32/tcb-offsets.sym | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libpthread/nptl/sysdeps/riscv32/tcb-offsets.sym b/libpthread/nptl/sysdeps/riscv32/tcb-offsets.sym index 86025a402..fe6856c5d 100644 --- a/libpthread/nptl/sysdeps/riscv32/tcb-offsets.sym +++ b/libpthread/nptl/sysdeps/riscv32/tcb-offsets.sym @@ -1,6 +1,7 @@ #include <sysdep.h> #include <tls.h> -MULTIPLE_THREADS_OFFSET offsetof (struct pthread, header.multiple_threads) -TID_OFFSET offsetof (struct pthread, tid) -TP_TO_PTHREAD_OFFSET -(sizeof (struct pthread) + sizeof (tcbhead_t)) +#define thread_offsetof(mem) (long)(offsetof (struct pthread, mem) - TLS_TCB_OFFSET - TLS_PRE_TCB_SIZE) + +MULTIPLE_THREADS_OFFSET thread_offsetof (header.multiple_threads) + |