summaryrefslogtreecommitdiff
path: root/libpthread/nptl/sysdeps/riscv32/tcb-offsets.sym
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2024-03-03 09:45:27 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2024-03-03 09:45:27 +0100
commit5f662ea93f1229f2cd9df67a27cc850bc856c75b (patch)
tree14d6bb27b89203eea5ec153e0a9a2a047debb0e9 /libpthread/nptl/sysdeps/riscv32/tcb-offsets.sym
parentc07daae85e85e6e5db12d671ae85e08e182bc94f (diff)
riscv32: add basic support for NPTL
Diffstat (limited to 'libpthread/nptl/sysdeps/riscv32/tcb-offsets.sym')
-rw-r--r--libpthread/nptl/sysdeps/riscv32/tcb-offsets.sym6
1 files changed, 6 insertions, 0 deletions
diff --git a/libpthread/nptl/sysdeps/riscv32/tcb-offsets.sym b/libpthread/nptl/sysdeps/riscv32/tcb-offsets.sym
new file mode 100644
index 000000000..86025a402
--- /dev/null
+++ b/libpthread/nptl/sysdeps/riscv32/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))