mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
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
b8f3034c1f
commit
35f406aafb
2 changed files with 2 additions and 2 deletions
|
|
@ -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…
Reference in a new issue