summaryrefslogtreecommitdiff
path: root/arch/csky/include/asm/processor.h
diff options
context:
space:
mode:
authorGuo Ren <ren_guo@c-sky.com>2018-12-31 15:17:48 +0800
committerGuo Ren <ren_guo@c-sky.com>2018-12-31 22:57:27 +0800
commit789154c2ad74c29c3c60c5136c1785745abe4897 (patch)
treef844b0a765ac5d5d2b027fc5b7e7ed9b4936db0b /arch/csky/include/asm/processor.h
parent31295a72b525721d10737260aea6918fb34607be (diff)
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/include/asm/processor.h')
-rw-r--r--arch/csky/include/asm/processor.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/csky/include/asm/processor.h b/arch/csky/include/asm/processor.h
index b1748659b2e9..5ac3f3227294 100644
--- a/arch/csky/include/asm/processor.h
+++ b/arch/csky/include/asm/processor.h
@@ -11,6 +11,7 @@
#include <asm/cache.h>
#include <abi/reg_ops.h>
#include <abi/regdef.h>
+#include <abi/switch_context.h>
#ifdef CONFIG_CPU_HAS_FPU
#include <abi/fpu.h>
#endif
@@ -50,8 +51,6 @@ struct thread_struct {
unsigned long ksp; /* kernel stack pointer */
unsigned long sr; /* saved status register */
unsigned long esp0; /* points to SR of stack frame */
- unsigned long hi;
- unsigned long lo;
/* Other stuff associated with the thread. */
unsigned long address; /* Last user fault */