m68k: Implement copy_thread_tls()
authorGeert Uytterhoeven <geert@linux-m68k.org>
Mon, 13 Jan 2020 10:30:40 +0000 (11:30 +0100)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Tue, 14 Jan 2020 09:43:38 +0000 (10:43 +0100)
commit6aabc1facdb24e837cfea755ba46a6be22a8860f
treede32333495deb4c07de2b1eedfa8d3b7c029bebf
parentbfc7931c40908a3e5575c527754ef4be2e24c83b
m68k: Implement copy_thread_tls()

This is required for clone3(), which passes the TLS value through a
struct rather than a register.

As do_fork() is only available if CONFIG_HAVE_COPY_THREAD_TLS is set,
m68k_clone() must be changed to call _do_fork() directly.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Christian Brauner <christian.brauner@ubuntu.com>
Acked-by: Greg Ungerer <gerg@linux-m68k.org>
Link: https://lore.kernel.org/r/20200113103040.23661-1-geert@linux-m68k.org
arch/m68k/Kconfig
arch/m68k/kernel/process.c