ARM: smp: Free up the TLS register while running in the kernel
authorArd Biesheuvel <ardb@kernel.org>
Sat, 18 Sep 2021 08:44:36 +0000 (10:44 +0200)
committerArd Biesheuvel <ardb@kernel.org>
Mon, 27 Sep 2021 14:54:02 +0000 (16:54 +0200)
commit3855ab614df4818c833864572559a97fd9f9a299
treeb20a006393d34ca2b1905054928bcc9f9dce6d16
parent19f29aebd929c31c5cc901f38a9295617b602c38
ARM: smp: Free up the TLS register while running in the kernel

To prepare for a subsequent patch that stores the current task pointer
in the user space TLS register while running in the kernel, modify the
set_tls and switch_tls routines not to touch the register directly, and
update the return to user space code to load the correct value.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Tested-by: Amit Daniel Kachhap <amit.kachhap@arm.com>
arch/arm/include/asm/tls.h
arch/arm/kernel/entry-header.S