diff options
author | Guo Ren <ren_guo@c-sky.com> | 2018-12-31 08:17:48 +0100 |
---|---|---|
committer | Guo Ren <ren_guo@c-sky.com> | 2018-12-31 15:57:27 +0100 |
commit | 789154c2ad74c29c3c60c5136c1785745abe4897 (patch) | |
tree | f844b0a765ac5d5d2b027fc5b7e7ed9b4936db0b /arch/csky/kernel/ptrace.c | |
parent | csky: remove syscall_exit_work (diff) | |
download | linux-789154c2ad74c29c3c60c5136c1785745abe4897.tar.xz linux-789154c2ad74c29c3c60c5136c1785745abe4897.zip |
csky: fixup save hi,lo,dspcr regs in switch_stack.
HI, LO, DSPCR registers are 807/810 related regs and no need for 610/860.
All of the regs must be saved in pt_regs and switch_stack. This patch
fixup saving dspcr reg in switch_stack and pt_regs.
Signed-off-by: Guo Ren <ren_guo@c-sky.com>
Diffstat (limited to 'arch/csky/kernel/ptrace.c')
-rw-r--r-- | arch/csky/kernel/ptrace.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/csky/kernel/ptrace.c b/arch/csky/kernel/ptrace.c index 34b30257298f..a76d466e1d0a 100644 --- a/arch/csky/kernel/ptrace.c +++ b/arch/csky/kernel/ptrace.c @@ -95,7 +95,9 @@ static int gpr_set(struct task_struct *target, return ret; regs.sr = task_pt_regs(target)->sr; - +#ifdef CONFIG_CPU_HAS_HILO + regs.dcsr = task_pt_regs(target)->dcsr; +#endif task_thread_info(target)->tp_value = regs.tls; *task_pt_regs(target) = regs; |