summaryrefslogtreecommitdiffstats
path: root/sys/mips
diff options
context:
space:
mode:
authorgonzo <gonzo@FreeBSD.org>2012-02-10 23:24:33 +0000
committergonzo <gonzo@FreeBSD.org>2012-02-10 23:24:33 +0000
commit194724f00c0873d87ed81c40c5f8c8c17d5a51f6 (patch)
tree2686b658731fcfc98972b64827eb029416a9276c /sys/mips
parente278c3bff09ee6207fa5f822cd64ede7b6083189 (diff)
downloadFreeBSD-src-194724f00c0873d87ed81c40c5f8c8c17d5a51f6.zip
FreeBSD-src-194724f00c0873d87ed81c40c5f8c8c17d5a51f6.tar.gz
- Reverse logic so base tls is fixed up with correct number
Diffstat (limited to 'sys/mips')
-rw-r--r--sys/mips/mips/vm_machdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/mips/mips/vm_machdep.c b/sys/mips/mips/vm_machdep.c
index 81f004a..faff43b 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;
OpenPOWER on IntegriCloud