aboutsummaryrefslogtreecommitdiffstats
path: root/arch/csky/include/uapi
diff options
context:
space:
mode:
authorGuo Ren <ren_guo@c-sky.com>2018-12-31 02:17:48 -0500
committerGuo Ren <ren_guo@c-sky.com>2018-12-31 09:57:27 -0500
commit789154c2ad74c29c3c60c5136c1785745abe4897 (patch)
treef844b0a765ac5d5d2b027fc5b7e7ed9b4936db0b /arch/csky/include/uapi
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/uapi')
-rw-r--r--arch/csky/include/uapi/asm/ptrace.h39
1 files changed, 1 insertions, 38 deletions
diff --git a/arch/csky/include/uapi/asm/ptrace.h b/arch/csky/include/uapi/asm/ptrace.h
index f10d02c8b09e..a4eaa8ddf0b1 100644
--- a/arch/csky/include/uapi/asm/ptrace.h
+++ b/arch/csky/include/uapi/asm/ptrace.h
@@ -36,7 +36,7 @@ struct pt_regs {
36 36
37 unsigned long rhi; 37 unsigned long rhi;
38 unsigned long rlo; 38 unsigned long rlo;
39 unsigned long pad; /* reserved */ 39 unsigned long dcsr;
40#endif 40#endif
41}; 41};
42 42
@@ -48,43 +48,6 @@ struct user_fp {
48 unsigned long reserved; 48 unsigned long reserved;
49}; 49};
50 50
51/*
52 * Switch stack for switch_to after push pt_regs.
53 *
54 * ABI_CSKYV2: r4 ~ r11, r15 ~ r17, r26 ~ r30;
55 * ABI_CSKYV1: r8 ~ r14, r15;
56 */
57struct switch_stack {
58#if defined(__CSKYABIV2__)
59 unsigned long r4;
60 unsigned long r5;
61 unsigned long r6;
62 unsigned long r7;
63 unsigned long r8;
64 unsigned long r9;
65 unsigned long r10;
66 unsigned long r11;
67#else
68 unsigned long r8;
69 unsigned long r9;
70 unsigned long r10;
71 unsigned long r11;
72 unsigned long r12;
73 unsigned long r13;
74 unsigned long r14;
75#endif
76 unsigned long r15;
77#if defined(__CSKYABIV2__)
78 unsigned long r16;
79 unsigned long r17;
80 unsigned long r26;
81 unsigned long r27;
82 unsigned long r28;
83 unsigned long r29;
84 unsigned long r30;
85#endif
86};
87
88#ifdef __KERNEL__ 51#ifdef __KERNEL__
89 52
90#define PS_S 0x80000000 /* Supervisor Mode */ 53#define PS_S 0x80000000 /* Supervisor Mode */