summaryrefslogtreecommitdiff
path: root/libpthread/nptl/sysdeps/or1k/tcb-offsets.sym
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2017-04-14 05:07:57 (GMT)
committerWaldemar Brodkorb <wbx@openadk.org>2017-05-14 08:29:09 (GMT)
commitbaad294eaf59e0e1b311a11448a04e3d3c5f3c56 (patch)
tree858d8924af34509f8742d025c6d8740f20464a97 /libpthread/nptl/sysdeps/or1k/tcb-offsets.sym
parent69ea4c1f65bff99575cd7f0210312dc355929240 (diff)
or1k: add NPTL/TLS support
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Diffstat (limited to 'libpthread/nptl/sysdeps/or1k/tcb-offsets.sym')
-rw-r--r--libpthread/nptl/sysdeps/or1k/tcb-offsets.sym6
1 files changed, 6 insertions, 0 deletions
diff --git a/libpthread/nptl/sysdeps/or1k/tcb-offsets.sym b/libpthread/nptl/sysdeps/or1k/tcb-offsets.sym
new file mode 100644
index 0000000..86025a4
--- /dev/null
+++ b/libpthread/nptl/sysdeps/or1k/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))