Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Apr 2016 15:31:05 +0000 (UTC)
From:      Ruslan Bukin <br@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r297971 - head/lib/libthr/arch/riscv/include
Message-ID:  <201604141531.u3EFV55Y031963@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201604141531.u3EFV55Y031963>