From 4c322abc565aba366fdb1c676ccd29bf0f21efd8 Mon Sep 17 00:00:00 2001 From: Oleksandr Tymoshenko Date: Fri, 10 Feb 2012 23:24:33 +0000 Subject: [PATCH] - Reverse logic so base tls is fixed up with correct number --- sys/mips/mips/vm_machdep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/mips/mips/vm_machdep.c b/sys/mips/mips/vm_machdep.c index 81f004ab571c..faff43ba496c 100644 --- a/sys/mips/mips/vm_machdep.c +++ b/sys/mips/mips/vm_machdep.c @@ -608,7 +608,7 @@ cpu_set_user_tls(struct thread *td, void *tls_base) * to make it the same way TLS base is passed to * MIPS_SET_TLS/MIPS_GET_TLS API */ -#ifndef __mips_n64 +#ifdef __mips_n64 td->td_md.md_tls = (char*)tls_base + 0x7010; #else td->td_md.md_tls = (char*)tls_base + 0x7008;