summaryrefslogtreecommitdiff
path: root/libpthread/nptl/sysdeps/or1k/tcb-offsets.sym
diff options
context:
space:
mode:
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))