svn commit: r366171 - head/sys/mips/mips

Justin Hibbits jhibbits at FreeBSD.org
Fri Sep 25 20:27:37 UTC 2020


Author: jhibbits
Date: Fri Sep 25 20:27:36 2020
New Revision: 366171
URL: https://svnweb.freebsd.org/changeset/base/366171

Log:
  Fix mips64 build
  
  Original patch was against FreeBSD 12, and a test compile wasn't run against
  head.  md_tls_tcb_offset field was moved from mdthread to mdproc in the
  meantime.
  
  MFC after:	1 week
  Sponsored by:	Juniper Networks, Inc.

Modified:
  head/sys/mips/mips/freebsd32_machdep.c

Modified: head/sys/mips/mips/freebsd32_machdep.c
==============================================================================
--- head/sys/mips/mips/freebsd32_machdep.c	Fri Sep 25 19:11:21 2020	(r366170)
+++ head/sys/mips/mips/freebsd32_machdep.c	Fri Sep 25 20:27:36 2020	(r366171)
@@ -465,7 +465,7 @@ freebsd32_sysarch(struct thread *td, struct freebsd32_
 		 */
 		if (cpuinfo.userlocal_reg == true) {
 			mips_wr_userlocal((unsigned long)(uap->parms +
-			    td->td_md.md_tls_tcb_offset));
+			    td->td_proc->p_md.md_tls_tcb_offset));
 		}
 		return (0);
 	case MIPS_GET_TLS: 


More information about the svn-src-all mailing list