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:
parent
7313caf832
commit
a37b953058
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user