diff options
-rw-r--r-- | arch/microblaze/kernel/process.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/microblaze/kernel/process.c b/arch/microblaze/kernel/process.c index 883b92789cdf..1944e00f07e1 100644 --- a/arch/microblaze/kernel/process.c +++ b/arch/microblaze/kernel/process.c | |||
@@ -182,8 +182,12 @@ int copy_thread(unsigned long clone_flags, unsigned long usp, | |||
182 | #endif | 182 | #endif |
183 | ti->cpu_context.r15 = (unsigned long)ret_from_fork - 8; | 183 | ti->cpu_context.r15 = (unsigned long)ret_from_fork - 8; |
184 | 184 | ||
185 | /* | ||
186 | * r21 is the thread reg, r10 is 6th arg to clone | ||
187 | * which contains TLS area | ||
188 | */ | ||
185 | if (clone_flags & CLONE_SETTLS) | 189 | if (clone_flags & CLONE_SETTLS) |
186 | ; | 190 | childregs->r21 = childregs->r10; |
187 | 191 | ||
188 | return 0; | 192 | return 0; |
189 | } | 193 | } |