powerpc: convert to copy_thread_tls
authorNicholas Piggin <npiggin@gmail.com>
Tue, 27 Aug 2019 03:30:06 +0000 (13:30 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 28 Aug 2019 13:19:34 +0000 (23:19 +1000)
commitfacd04a904ff6cdc6ee85d6e85d500f478a1bec4
tree77428cecf566b96af47a3e91c155eeb7456442e5
parentc7bf1252d5b3891b4ab7072b240a8422fb9da793
powerpc: convert to copy_thread_tls

Commit 3033f14ab78c3 ("clone: support passing tls argument via C rather
than pt_regs magic") introduced the HAVE_COPY_THREAD_TLS option. Use it
to avoid a subtle assumption about the argument ordering of clone type
syscalls.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20190827033010.28090-2-npiggin@gmail.com
arch/powerpc/Kconfig
arch/powerpc/kernel/process.c