summaryrefslogtreecommitdiffstats
path: root/lib/libthr/arch/riscv/include/pthread_md.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libthr/arch/riscv/include/pthread_md.h')
-rw-r--r--lib/libthr/arch/riscv/include/pthread_md.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libthr/arch/riscv/include/pthread_md.h b/lib/libthr/arch/riscv/include/pthread_md.h
index 86eccc1..3f51078 100644
--- a/lib/libthr/arch/riscv/include/pthread_md.h
+++ b/lib/libthr/arch/riscv/include/pthread_md.h
@@ -46,7 +46,7 @@
#define CPU_SPINWAIT
#define DTV_OFFSET offsetof(struct tcb, tcb_dtv)
-#define TP_OFFSET 0x10
+#define TP_OFFSET sizeof(struct tcb)
/*
* Variant I tcb. The structure layout is fixed, don't blindly
OpenPOWER on IntegriCloud