From af399c5bf7929487f4e5ed028d6ae723469ba554 Mon Sep 17 00:00:00 2001 From: Justin Hibbits Date: Fri, 25 Sep 2020 20:27:36 +0000 Subject: [PATCH] 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. --- sys/mips/mips/freebsd32_machdep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/mips/mips/freebsd32_machdep.c b/sys/mips/mips/freebsd32_machdep.c index 13fe21df99af..7cf61f509836 100644 --- a/sys/mips/mips/freebsd32_machdep.c +++ b/sys/mips/mips/freebsd32_machdep.c @@ -465,7 +465,7 @@ freebsd32_sysarch(struct thread *td, struct freebsd32_sysarch_args *uap) */ 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: