mips: Implement "current_stack_pointer"
authorKees Cook <keescook@chromium.org>
Thu, 24 Feb 2022 06:04:32 +0000 (22:04 -0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Tue, 1 Mar 2022 15:57:55 +0000 (16:57 +0100)
commit200ed341b8646ea893d5466974d6e107c46237ba
tree2d383f792532c602e251a3316a141c9e3d4c563d
parent455481fc9a807798eca05f6fb0918ab88109d845
mips: Implement "current_stack_pointer"

To follow the existing per-arch conventions replace open-coded uses
of asm "sp" as "current_stack_pointer". This will let it be used in
non-arch places (like HARDENED_USERCOPY).

Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: Marc Zyngier <maz@kernel.org>
Cc: Guenter Roeck <linux@roeck-us.net>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Yanteng Si <siyanteng01@gmail.com>
Cc: linux-mips@vger.kernel.org
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/Kconfig
arch/mips/include/asm/thread_info.h
arch/mips/kernel/irq.c
arch/mips/lib/uncached.c