linux-stable/arch/csky
Guo Ren eb2ac8c497 csky: Set regs->usp to kernel sp, when the exception is from kernel
[ Upstream commit f8e17c17b8 ]

In the past, we didn't care about kernel sp when saving pt_reg. But in some
cases, we still need pt_reg->usp to represent the kernel stack before enter
exception.

For cmpxhg in atomic.S, we need save and restore usp for above.

Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-03-12 13:00:16 +01:00
..
abiv1 csky: Set regs->usp to kernel sp, when the exception is from kernel 2020-03-12 13:00:16 +01:00
abiv2 csky: Set regs->usp to kernel sp, when the exception is from kernel 2020-03-12 13:00:16 +01:00
boot treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
configs
include csky-for-linus-5.4-rc1: arch/csky patches for 5.4-rc1 2019-09-30 10:16:17 -07:00
kernel csky: Set regs->usp to kernel sp, when the exception is from kernel 2020-03-12 13:00:16 +01:00
lib treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
mm csky/mm: Fixup export invalid_pte_table symbol 2020-03-12 13:00:16 +01:00
Kconfig csky: Select intc & timer drivers 2019-07-19 14:21:36 +08:00
Kconfig.debug treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile kconfig: make arch/*/configs/defconfig the default of KBUILD_DEFCONFIG 2019-06-09 15:08:18 +09:00