- Reverse logic so base tls is fixed up with correct number

This commit is contained in:
Oleksandr Tymoshenko 2012-02-10 23:24:33 +00:00
parent 2477c8ab78
commit 4c322abc56
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=231470

View File

@ -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;