Commit 643d48b8 authored by Christian Brauner's avatar Christian Brauner

hexagon: switch to copy_thread_tls()

Use the copy_thread_tls() calling convention which passes tls through a
register. This is required so we can remove the copy_thread{_tls}() split
and remove the HAVE_COPY_THREAD_TLS macro.

Cc: linux-hexagon@vger.kernel.org
Acked-by: default avatarBrian Cain <bcain@codeaurora.org>
Signed-off-by: default avatarChristian Brauner <christian.brauner@ubuntu.com>
parent e0daa22c
...@@ -31,6 +31,7 @@ config HEXAGON ...@@ -31,6 +31,7 @@ config HEXAGON
select GENERIC_CLOCKEVENTS_BROADCAST select GENERIC_CLOCKEVENTS_BROADCAST
select MODULES_USE_ELF_RELA select MODULES_USE_ELF_RELA
select GENERIC_CPU_DEVICES select GENERIC_CPU_DEVICES
select HAVE_COPY_THREAD_TLS
help help
Qualcomm Hexagon is a processor architecture designed for high Qualcomm Hexagon is a processor architecture designed for high
performance and low power across a wide variety of applications. performance and low power across a wide variety of applications.
......
...@@ -50,8 +50,8 @@ void arch_cpu_idle(void) ...@@ -50,8 +50,8 @@ void arch_cpu_idle(void)
/* /*
* Copy architecture-specific thread state * Copy architecture-specific thread state
*/ */
int copy_thread(unsigned long clone_flags, unsigned long usp, int copy_thread_tls(unsigned long clone_flags, unsigned long usp,
unsigned long arg, struct task_struct *p) unsigned long arg, struct task_struct *p, unsigned long tls)
{ {
struct thread_info *ti = task_thread_info(p); struct thread_info *ti = task_thread_info(p);
struct hexagon_switch_stack *ss; struct hexagon_switch_stack *ss;
...@@ -100,7 +100,7 @@ int copy_thread(unsigned long clone_flags, unsigned long usp, ...@@ -100,7 +100,7 @@ int copy_thread(unsigned long clone_flags, unsigned long usp,
* ugp is used to provide TLS support. * ugp is used to provide TLS support.
*/ */
if (clone_flags & CLONE_SETTLS) if (clone_flags & CLONE_SETTLS)
childregs->ugp = childregs->r04; childregs->ugp = tls;
/* /*
* Parent sees new pid -- not necessary, not even possible at * Parent sees new pid -- not necessary, not even possible at
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment