mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
[MIPS] Enable support for the userlocal hardware register
Which will cut down the cost of RDHWR $29 which is used to obtain the TLS pointer and so far being emulated in software down to a single cycle operation. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
d223a86154
commit
a36920200c
7 changed files with 24 additions and 5 deletions
|
@ -272,9 +272,8 @@ asmlinkage int sys_set_thread_area(unsigned long addr)
|
|||
struct thread_info *ti = task_thread_info(current);
|
||||
|
||||
ti->tp_value = addr;
|
||||
|
||||
/* If some future MIPS implementation has this register in hardware,
|
||||
* we will need to update it here (and in context switches). */
|
||||
if (cpu_has_userlocal)
|
||||
write_c0_userlocal(addr);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue