aboutsummaryrefslogtreecommitdiff
path: root/lib/libthr
diff options
context:
space:
mode:
authorGlen Barber <gjb@FreeBSD.org>2016-04-16 02:32:12 +0000
committerGlen Barber <gjb@FreeBSD.org>2016-04-16 02:32:12 +0000
commit0edd2576c0e07f525c80e4aa5ff24350b55f18b7 (patch)
treea8871301d693c6d33d43cd3171b1ee4783fec0e4 /lib/libthr
parent010855174aaafbf3c0fee918f12e843089b58b6f (diff)
parentd1ad1a7394330d70efc2f2c58862a02dd8900acf (diff)
Notes
Diffstat (limited to 'lib/libthr')
-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 86eccc15e0ebf..3f5107815de3a 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