summaryrefslogtreecommitdiffstats
path: root/arch/csky/kernel/process.c
diff options
context:
space:
mode:
authorGuo Ren <guoren@linux.alibaba.com>2020-05-14 16:04:31 +0800
committerGuo Ren <guoren@linux.alibaba.com>2020-05-15 00:16:18 +0800
commit67002814cf3b7265900003f6a49657847eeeb57d (patch)
tree47dd829a263cd5964ed533c4d2587ac50ead0d7d /arch/csky/kernel/process.c
parent9e2ca15322acc5a0a697305e02af9ce5ac881f66 (diff)
downloadlinux-stable-67002814cf3b7265900003f6a49657847eeeb57d.tar.gz
linux-stable-67002814cf3b7265900003f6a49657847eeeb57d.tar.bz2
linux-stable-67002814cf3b7265900003f6a49657847eeeb57d.zip
csky: Fixup gdbmacros.txt with name sp in thread_struct
The gdbmacros.txt use sp in thread_struct, but csky use ksp. This cause bttnobp fail to excute. TODO: - Still couldn't display the contents of stack. Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
Diffstat (limited to 'arch/csky/kernel/process.c')
-rw-r--r--arch/csky/kernel/process.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/csky/kernel/process.c b/arch/csky/kernel/process.c
index 4ad6db56c3cd..8b3fad062ab2 100644
--- a/arch/csky/kernel/process.c
+++ b/arch/csky/kernel/process.c
@@ -35,7 +35,7 @@ void flush_thread(void){}
*/
unsigned long thread_saved_pc(struct task_struct *tsk)
{
- struct switch_stack *sw = (struct switch_stack *)tsk->thread.ksp;
+ struct switch_stack *sw = (struct switch_stack *)tsk->thread.sp;
return sw->r15;
}
@@ -56,8 +56,8 @@ int copy_thread_tls(unsigned long clone_flags,
childstack = ((struct switch_stack *) childregs) - 1;
memset(childstack, 0, sizeof(struct switch_stack));
- /* setup ksp for switch_to !!! */
- p->thread.ksp = (unsigned long)childstack;
+ /* setup thread.sp for switch_to !!! */
+ p->thread.sp = (unsigned long)childstack;
if (unlikely(p->flags & PF_KTHREAD)) {
memset(childregs, 0, sizeof(struct pt_regs));