In cpu_set_user_tls(), properly set the thread pointer. It is 0x7000

bytes after the end of the TCB, which is itself 8 bytes.
This commit is contained in:
marcel 2006-09-01 06:05:40 +00:00
parent 7313caf832
commit a37b953058
2 changed files with 2 additions and 2 deletions

View File

@ -358,6 +358,6 @@ int
cpu_set_user_tls(struct thread *td, void *tls_base)
{
td->td_frame->fixreg[2] = (register_t)tls_base;
td->td_frame->fixreg[2] = (register_t)tls_base + 0x7008;
return (0);
}

View File

@ -358,6 +358,6 @@ int
cpu_set_user_tls(struct thread *td, void *tls_base)
{
td->td_frame->fixreg[2] = (register_t)tls_base;
td->td_frame->fixreg[2] = (register_t)tls_base + 0x7008;
return (0);
}