svn commit: r297971 - head/lib/libthr/arch/riscv/include
Ruslan Bukin
br at FreeBSD.org
Thu Apr 14 15:31:06 UTC 2016
Author: br
Date: Thu Apr 14 15:31:05 2016
New Revision: 297971
URL: https://svnweb.freebsd.org/changeset/base/297971
Log:
Unmagic the thread pointer offset.
Modified:
head/lib/libthr/arch/riscv/include/pthread_md.h
Modified: head/lib/libthr/arch/riscv/include/pthread_md.h
==============================================================================
--- head/lib/libthr/arch/riscv/include/pthread_md.h Thu Apr 14 15:24:45 2016 (r297970)
+++ head/lib/libthr/arch/riscv/include/pthread_md.h Thu Apr 14 15:31:05 2016 (r297971)
@@ -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
More information about the svn-src-head
mailing list