linux-stable/arch/csky/kernel
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
..
asm-offsets.c csky: remove unused members in processor.h 2018-12-31 23:16:00 +08:00
atomic.S csky: Set regs->usp to kernel sp, when the exception is from kernel 2020-03-12 13:00:16 +01:00
cpu-probe.c csky: Exception handling and mm-fault 2018-10-25 23:36:19 +08:00
dumpstack.c csky: Fixup dead loop in show_stack 2019-02-13 09:48:14 +08:00
entry.S csky: entry: Remove unneeded need_resched() loop 2019-09-30 11:49:47 +08:00
ftrace.c csky/ftrace: Add dynamic function tracer (include graph tracer) 2019-04-22 13:44:57 +08:00
head.S csky: Support vmlinux bootup with MMU off 2019-04-22 13:44:57 +08:00
irq.c csky: IRQ handling 2018-10-26 00:54:22 +08:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
module.c csky: fixup compile error with CPU 810. 2019-01-10 04:37:37 -08:00
perf_callchain.c csky: Add perf callchain support 2019-04-22 13:44:57 +08:00
perf_event.c csky: Move static keyword to the front of declaration 2019-09-30 11:50:49 +08:00
perf_regs.c csky: Add support for perf registers sampling 2019-04-22 13:44:57 +08:00
power.c csky: Library functions 2018-10-26 00:54:24 +08:00
process.c csky: Fixup add zero_fp fixup perf backtrace panic 2019-09-30 10:26:32 +08:00
ptrace.c csky/syscall_trace: Fixup return processing flow 2019-04-22 15:55:28 +08:00
setup.c csky: Use va_pa_offset instead of phys_offset 2019-04-22 13:44:57 +08:00
signal.c Merge branch 'siginfo-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace 2019-07-08 21:48:15 -07:00
smp.c csky: Revert mmu ASID mechanism 2019-07-19 14:21:36 +08:00
stacktrace.c csky: stacktrace supported. 2018-12-31 23:12:22 +08:00
syscall.c csky: System Call 2018-10-25 23:36:19 +08:00
syscall_table.c csky: System Call 2018-10-25 23:36:19 +08:00
time.c csky: Process management and Signal 2018-10-26 00:54:13 +08:00
traps.c arch/csky patches for 5.3-rc1 2019-07-19 12:15:33 -07:00
vdso.c csky: VDSO and rt_sigreturn 2018-10-26 00:54:22 +08:00
vmlinux.lds.S