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 _______________________________________________ [email protected] mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "[email protected]"
