From d0bc0d2bc8e5898bed6dfa6f253d164e9fc149f4 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Fri, 8 Nov 2019 03:03:43 +0100 Subject: 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. --- libpthread/nptl/sysdeps/riscv64/tcb-offsets.sym | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 libpthread/nptl/sysdeps/riscv64/tcb-offsets.sym (limited to 'libpthread/nptl/sysdeps/riscv64/tcb-offsets.sym') 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 +#include + +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)) -- cgit v1.2.3