Skip to content

Commit e0daa22

Browse files
author
Christian Brauner
committed
c6x: 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: Mark Salter <[email protected]> Cc: Aurelien Jacquiot <[email protected]> Cc: [email protected] Signed-off-by: Christian Brauner <[email protected]>
1 parent 0fdfc53 commit e0daa22

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

arch/c6x/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ config C6X
2222
select GENERIC_CLOCKEVENTS
2323
select MODULES_USE_ELF_RELA
2424
select MMU_GATHER_NO_RANGE if MMU
25+
select HAVE_COPY_THREAD_TLS
2526

2627
config MMU
2728
def_bool n

arch/c6x/kernel/process.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@ void start_thread(struct pt_regs *regs, unsigned int pc, unsigned long usp)
104104
/*
105105
* Copy a new thread context in its stack.
106106
*/
107-
int copy_thread(unsigned long clone_flags, unsigned long usp,
108-
unsigned long ustk_size,
109-
struct task_struct *p)
107+
int copy_thread_tls(unsigned long clone_flags, unsigned long usp,
108+
unsigned long ustk_size, struct task_struct *p,
109+
unsigned long tls)
110110
{
111111
struct pt_regs *childregs;
112112

0 commit comments

Comments
 (0)