mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-05 22:12:16 +00:00
NPTL, round one.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
38551576a3
commit
3c37026d43
14 changed files with 129 additions and 14 deletions
|
@ -89,6 +89,7 @@ int copy_thread(int nr, unsigned long clone_flags, unsigned long usp,
|
|||
struct thread_info *ti = p->thread_info;
|
||||
struct pt_regs *childregs;
|
||||
long childksp;
|
||||
p->set_child_tid = p->clear_child_tid = NULL;
|
||||
|
||||
childksp = (unsigned long)ti + THREAD_SIZE - 32;
|
||||
|
||||
|
@ -134,6 +135,9 @@ int copy_thread(int nr, unsigned long clone_flags, unsigned long usp,
|
|||
childregs->cp0_status &= ~(ST0_CU2|ST0_CU1);
|
||||
clear_tsk_thread_flag(p, TIF_USEDFPU);
|
||||
|
||||
if (clone_flags & CLONE_SETTLS)
|
||||
ti->tp_value = regs->regs[7];
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue