diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2019-11-08 03:03:43 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2019-11-08 03:03:43 +0100 |
commit | d0bc0d2bc8e5898bed6dfa6f253d164e9fc149f4 (patch) | |
tree | e6315b68a6c5100bdcec391cd965ef63d5291f82 /libpthread/nptl/sysdeps/riscv64/tcb-offsets.sym | |
parent | cb9d1f53717dd67892ba943626f3d1b46f3e760b (diff) |
riscv64: implement NPTL/TLS
basically from or1k port of uClibc-ng, with fixes for structures in
pthreadtypes.h from 64 bit architectures.
18 testsuite failures counted.
Diffstat (limited to 'libpthread/nptl/sysdeps/riscv64/tcb-offsets.sym')
-rw-r--r-- | libpthread/nptl/sysdeps/riscv64/tcb-offsets.sym | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libpthread/nptl/sysdeps/riscv64/tcb-offsets.sym b/libpthread/nptl/sysdeps/riscv64/tcb-offsets.sym new file mode 100644 index 000000000..86025a402 --- /dev/null +++ b/libpthread/nptl/sysdeps/riscv64/tcb-offsets.sym @@ -0,0 +1,6 @@ +#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)) |