summaryrefslogtreecommitdiff
path: root/arch/csky/kernel/asm-offsets.c
diff options
context:
space:
mode:
authorGuo Ren <guoren@linux.alibaba.com>2020-05-13 17:16:26 +0800
committerGuo Ren <guoren@linux.alibaba.com>2020-05-13 17:55:06 +0800
commit9e2ca15322acc5a0a697305e02af9ce5ac881f66 (patch)
tree96ac36843530a82b31e32d36999e9f185d0d8586 /arch/csky/kernel/asm-offsets.c
parent6633a5aa8eb6bda70eb3a9837efd28a67ccc6e0a (diff)
downloadlinux-sh-9e2ca15322acc5a0a697305e02af9ce5ac881f66.tar.gz
csky: Fixup remove unnecessary save/restore PSR code
All processes' PSR could success from SETUP_MMU, so need set it in INIT_THREAD again. And use a3 instead of r7 in __switch_to for code convention. Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
Diffstat (limited to 'arch/csky/kernel/asm-offsets.c')
-rw-r--r--arch/csky/kernel/asm-offsets.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/csky/kernel/asm-offsets.c b/arch/csky/kernel/asm-offsets.c
index f8be348df9e4..bbc259eed233 100644
--- a/arch/csky/kernel/asm-offsets.c
+++ b/arch/csky/kernel/asm-offsets.c
@@ -19,7 +19,6 @@ int main(void)
/* offsets into the thread struct */
DEFINE(THREAD_KSP, offsetof(struct thread_struct, ksp));
- DEFINE(THREAD_SR, offsetof(struct thread_struct, sr));
DEFINE(THREAD_FESR, offsetof(struct thread_struct, user_fp.fesr));
DEFINE(THREAD_FCR, offsetof(struct thread_struct, user_fp.fcr));
DEFINE(THREAD_FPREG, offsetof(struct thread_struct, user_fp.vr));